Complications
public class TrivialApplication {
public static void main(String args[]) {
int x = 1;
int y = 2;
C c = new C(x, y);
c.myMethod(c.x, c.y);
System.out.println("x = " + x + " y = " + y); }}
public class C {
int x; int y;
public C(int xx, int yy) {x = xx; y = yy;}
public void myMethod(int a, int b) {
a = 3; b = 4;}
}
Previous slide
Next slide
Back to first slide
View graphic version