CS520

Card Set Information

Author:
Kevinpom
ID:
282896
Filename:
CS520
Updated:
2014-09-13 08:53:01
Tags:
CS520
Folders:

Description:
BU CS520 Flash Cards
Show Answers:

Home > Flashcards > Print Preview

The flashcards below were created by user Kevinpom on FreezingBlue Flashcards. What would you like to do?


  1. What is a Base Class or Superclass?
    The parent class in an inheritance hierarchy.
  2. What is a Subclass or Derived Class?
    The child classes in a inheritance hierarchy
  3. To display an object, we use what method of the class?
    • ToString.
    • Usually the default toString is overridden using a return statement.
  4. How would you derive a subclass from a superclass?
    public class subclass extends superclass.
  5. What is the default constructor?
    typically the constructor with no arguments.
  6. When defining a constructor for a subclass, what keyword invokes the constructor of the superclass?
    • Super.
    • i.e. super (arguments from the superclass constructor)
  7. 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.

What would you like to do?

Home > Flashcards > Print Preview