Computer Applications
The class that gets inherited is known as …………… .
- Parent class
- Base class
- Super class
- All of these
Encapsulation & Inheritance in Java
1 Like
Answer
All of these
Reason — The class that gets inherited is known as a parent class, base class and super class as well.
Answered By
1 Like
Related Questions
A static variable …………… .
- is preceded by static keyword in the declaration
- is accessed via the class name
- is also known as a class variable
- All of the above
…………… is the feature by means of which one class acquires the properties of another class.
- Abstraction
- Inheritance
- Encapsulation
- Polymorphism
When many sub classes are inherited from a single base class, it is known as …………… .
- Hierarchical inheritance
- Multiple inheritance
- Single inheritance
- Multilevel inheritance
How does a class encapsulate state and behaviour?