Advertisements
Advertisements
प्रश्न
The process by which a class acquires the properties from another class is called:
विकल्प
Polymorphism
Inheritance
Abstraction
Object
MCQ
उत्तर
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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?