class person { person() {}; person(String n, time t, person m) {this.name = n this.bedtime = t this.mother = m}; private person getMother() { return this.mother; } private time getBedTime() { return this.bedtime; }
private person mother; private String name; private time bedtime; }
public static void main(String args[]){
person me= new person(will, 2:00, myMom); person richard = new person(richard, 12:55, hisMom); person myPerson;
myPerson=(me.getMother()).getMother();
if((myPerson.getBedTime()).isLaterThan(richard.getBedTime())) System.out.println("My grandmother stays up later than you, richard^.^") }
I knew a Richard Chen from new york...did you attend IS237q? |