Chapter 11 Flashcards
actual type
The actual type of the variable is the actual class for the object referenced by the variable.
casting objects
Converting an object of one object type into another object type. The contents of the object are not changed.
constructor chaining
Constructing an instance of a class invokes all the constructor chaining superclasses along the inheritance chain.
declared type
A data type that is used to declare a reference variable. This type is called the declared type for the variable.
dynamic binding
A method may be defined in a superclass, but is overridden in a subclass. Which implementation of the method is used on a particular call will be determined dynamically at runtime. This capability is known as dynamic binding.
inheritance/is-a relationship
Defining a new class by extending an existing class
instanceof
An operator that checks whether an object is an instance of a class.
method overriding/override
Implement the method in a subclass that is declared in a superclass.
multiple inheritance
Means that a class can extend multiple superclasses.
polymorphism
Refers to the feature that an object of a subclass can be used by any code designed to work with an object of its superclass.
protected
A modifier for members of a class. A protected member of a class can be used in the class in which it is declared or any subclass derived from that class.
single inheritance
Means that a class can only extend one superclass.
sublcass/subtype
(Child class or derived class) A class that inherits from or extends a superclass.
superclass/supertype
(parent class or extended class) A class inherited from a subclass.
type inference
The concrete type is no longer required in the constructor thanks to a feature called type inference.