Discussion Board
Go to the previous messageGo to the following message
Current Forum: Homework 4 General Forum
Date: Wed Oct 10 2001 3:41 pm
Author: Lao, William <wlao@andrew.cmu.edu>
Subject: Re: Mid Semester Break

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?
Post response

Go to the previous messageGo to the following message
Current Thread Detail:
Mid Semester Break      Vangaalen, Alexander      Wed Oct 3 2001 8:00 pm       
Re: Mid Semester Break      Lee, Peter      Thu Oct 4 2001 7:14 am       
Re: Mid Semester Break      Chau, Connie      Tue Oct 9 2001 5:18 pm       
Re: Mid Semester Break      Lee, Charles C.      Tue Oct 9 2001 9:23 pm       
Re: Mid Semester Break      Lee, Peter      Wed Oct 10 2001 12:39 am       
Re: Mid Semester Break      Chen, Richard      Wed Oct 10 2001 12:55 am       
Re: Mid Semester Break      Lao, William      Wed Oct 10 2001 3:11 pm       
Re: Mid Semester Break      Lao, William      Wed Oct 10 2001 3:41 pm       
Re: Mid Semester Break      Chen, Richard      Thu Oct 11 2001 5:29 am       
Re: Mid Semester Break      Lee, Peter      Thu Oct 11 2001 9:05 am       

Back to previous screen