Advertisements
Advertisements
Question
A mechanism where one class acquires the properties of another class:
Options
Polymorphism
Inheritance
Encapsulation
Abstraction
MCQ
Solution
Inheritance
Explanation:
Inheritance is an OOPS property in which a child class acquires the properties and functions of another class called as the parent/base class.
shaalaa.com
Principles of Object Oriented Programming (OOP)
Is there an error in this question or solution?