1. What is the type or types of the variable(s) that can reference the
object created in the following statement? (The definition of the class
Undergraduate is given in L isting 8.4.)
Undergraduate ug = new Undergraduate();
2. Describe two uses for the keyword super.
3. What is the difference between this and super when these words are
used within a constructor definition as the names of methods that are
called?
4. Consider the code below, which was discussed in the previous section:
Student joe = new Student("Joe Student", 2001);
System.out.println(joe.toString());
Why is the output on two lines instead of being all on one line?