• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
Front

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

image

PLAY BUTTON

image

PLAY BUTTON

image

Progress

1/20

Click to flip

20 Cards in this Set

  • Front
  • Back
Inheritence
The ability to share similarities among classes while still preserving their differences
Polymorphism
The ability to associate many meanings to one method
Binding
The ability to associate the correct method definition with the method invocation
Late (dynamic) Binding
Association occurs during run time and is determined by what object the reference variable refers to
*Cannot be preformed on static, private, or final methods
Early Binding
Associate occurs during compilation, and is determined by the reference variable type
Abstract Class
A class that contains abstract methods. Has modifier abstract in class heading.
Abstract Method
Placeholder for a method that will be full defined in a descendent class. There is no code for the method, only the method header followed by a semicolon. Body of the method is defined in a derived class. Has keyword abstract.
"is a" relationship
also "is a type of"
Shows inheritence relationship.
Honda is a car
Toyota is a car
"has a" relationship
Modeled through composition (aggregation)
CashDrawer has Money
Order in which constructors are called in Inheritance
1) base class constructors called recursively from top of hierarchy
2) Instance variables in order of declaration
3) Body of derived class constructor
Method Overriding
Same name, same method signature
Method Overloading
Same name, different method signature
Clone Method
Returns a deep copy of an object. Inherited from Object. You do not need to know the subclass of the calling object.
Base Class
Contains all instance variables and methods common between derived classes. However, derived classes do not have access to private variables and methods. They must be accessed indirectly.
Derived Class / Subclass
Inherits all instance variables from its base class.
Final Method
If a method is labelled final, it cannot be overridden
Final Class
If a class is labelled final, it cannot be a base class or have subclasses
protected
Offers limited security
Variables and methods labeled protected can be access by all classes within the same package and derived classes.
Super()
A call to the baseclass
The no argument constructor is called if the derived class does not main a call to super
Copy Constructor
A constructor which takes in the same object and sets the calling objects parameters to the reference variables parameters. It must make a call to super()