Home > Preview
The flashcards below were created by user
on FreezingBlue Flashcards.
What is a Base Class or Superclass?
The parent class in an inheritance hierarchy.
What is a Subclass or Derived Class?
The child classes in a inheritance hierarchy
To display an object, we use what method of the class?
- Usually the default toString is overridden using a return statement.
How would you derive a subclass from a superclass?
public class subclass extends superclass.
What is the default constructor?
typically the constructor with no arguments.
When defining a constructor for a subclass, what keyword invokes the constructor of the superclass?
- i.e. super (arguments from the superclass constructor)
A method defined in a derived class is referred to as a _____ and the it invokes from a superclass is called a ______.
Caller and Callee.
Home > Flashcards > Print Preview