Computer Applications
…………… is the feature by means of which one class acquires the properties of another class.
- Abstraction
- Inheritance
- Encapsulation
- Polymorphism
Encapsulation & Inheritance in Java
1 Like
Answer
Inheritance
Reason — Inheritance is the feature by means of which one class acquires the properties of another class.
Answered By
3 Likes
Related Questions
An instance variable …………… .
- needs an instance to access it
- does not need an instance to access it
- can be accessed using the class name
- is declared with the static keyword
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
The class that gets inherited is known as …………… .
- Parent class
- Base class
- Super class
- All of these
When many sub classes are inherited from a single base class, it is known as …………… .
- Hierarchical inheritance
- Multiple inheritance
- Single inheritance
- Multilevel inheritance