IT 114: Introduction to Java
Answers to Class 34 Ungraded Quiz

  1. Write the class header you would use to declare the class Cat which is derived from class Pet.
    public class Cat extends Pet
  2. Write the general form for calling the constructor of a superclass.
    super(EXPRESSION, ...);
    			
  3. Write the expression you would use to call the toString method of a superclass.
    super.toString()