Module 4 Flashcards
1
Q
The process where one class acquires the properties (methods and fields) of another.
A
Inheritance
2
Q
Categories of Inheritance :
A
- Superclass (Parent)
- Subclass (Child)
3
Q
is the keyword used to inherit the properties of a class.
A
Extends
4
Q
- It is used to differentiate the members of superclass from the members of subclass, if they have same names.
- It is used to invoke the superclass constructor
from subclass.
A
The super keyword
5
Q
This keyword checks whether an object is an instance of a specific class or an
interface.
A
The instanceof keyword
6
Q
- This keyword is used with classes to inherit the properties of an interface.
- Interfaces can never be extended by a class.
A
The implements keyword
7
Q
is a completely “abstract class” that is used to group related methods with empty
bodies.
A
Interface
8
Q
Types of Inheritance :
A
- Single Inheritance
- Multi Level Inheritance
- Hierarchical Inheritance
- Multiple Inheritance
9
Q
means to override the functionality of
an existing method.
A
Overriding