More complex program
What happens now when this is run?
public class Test {
public static void main (String args []) {
Person p = new Person(“John”, 33);
p.setAge(34);
System.out.println(p.getAge());
}
}
Previous slide
Back to first slide
View graphic version