Advertisements
Advertisements
Question
The process by which a class acquires the properties from another class is called:
Options
Polymorphism
Inheritance
Abstraction
Object
MCQ
Solution
Inheritance
Explanation:
Inheritance is the process by which one class (the subclass or derived class) inherits the attributes and behaviours (methods) of another class (the superclass or base class). It enables code reuse and the development of hierarchical class hierarchies in object-oriented programming.
shaalaa.com
Is there an error in this question or solution?