Name: _________________________
Section: ____

CSE143
Miniquiz #3
Tuesday 10/15/2002
Time limit: 6 minutes

1. Under reasonable assumptions, draw the picture (official 143 style) that results after the following lines of code execute:

String theName = "Tyler";

theName = theName + " Durden";

 

 

2. Draw the inheritance hierarchy for MyNiceCalendar:

class MyNiceCalendar extends GregorianCalendar, implements Comparable, IDateInvestigator {

private Date tomorrow;

...

}

 

 

3. Fill in the blank with appropriate word(s):

public ___________________ ClassyClass {

private int classiness = 0;

public abstract getClassiness( ) ;

public String toString( ) { return "Classiness is now " + classiness;}

}

THOUGHT QUESTION (ungraded):

Referring back to question 1 above: What were some of the "reasonable assumptions" you made to answer the question?