Advertisements
Advertisements
Question
It is a feature in which a derived class is being able to access data/methods of its base class:
Options
Encapsulation
Inheritance
Polymorphism
Abstraction
MCQ
Advertisements
Solution
Inheritance
Explanation:
- Inheritance is an OOP feature in which a derived class can access the data members and methods of its base class.
- It helps in code reusability by allowing one class to acquire the properties and behaviour of another class.
shaalaa.com
Is there an error in this question or solution?
Chapter 1: Revision of Class 9 Syllabus - Exercises [Page 43]
