Chapter 9: Inheritance Flashcards
inheritance
The is-a relationship between a more general superclass and a more specialized subclass.
superclass
A general class from which a more specialized class (a subclass) inherits.
subclass
A class that inherits variables and methods from a superclass but may also add instance variables, add methods, or redefine methods.
override
Redefining a method in a subclass.
dynamic method lookup
Selecting a method to be invoked at run time. In Java, dynamic method lookup considers the class of the implicit parameter object to select the appropriate method.
polymorphism
Selecting a method among several methods that have the same name on the basis of the actual types of the implicit parameters.
abstract class
A class that cannot be instantiated.
concrete class
A class that can be instantiated.