Computer Science Quiz Review Inheritance Java APCS
The process of using features (both attributes and methods) of an existing class.
Composition
Type of relationship described by "has-a"
Composition
Is the superclass of all classes
Object
The OOP feature whereby all the data fields of an object are placed in the same container.
encapsulation
This keyword is required in the heading of a subclass.
extends
Type of relationship described by "is-a"
inheritance definition
A computer science teacher is-a human being.
inheritance example
A poodle is-a dog. A dog is-a mammal. a mammal is-a animal.
multi-level inheritance example
When a method or attribute is declared ____________, it can only be accessed from the methods of the same class.
private
When a method or attribute is declared ____________, it can only be accessed from the methods of the same package.
protected
When a method or attribute is declared ____________, it can only be accessed from any method of any class.
public
In Inheritance, this class constructor is completed second.
subclass
In Inheritance, this is the new class that inherits the features from the existing class.
subclass
This keyword is used to send information to the superclass constructor and must be the first command in the subclass constructor.
super
When both the subclass and the superclass have a method with the same name, this keyword is used when you want to call the superclass' method.
super
In Inheritance, this class constructor is completed first.
superclass
In Inheritance, this is he existing class.
superclass
You may override the toString() method of the Object class
true