The feature by which a new class acquires the properties and behaviour of an existing class is
- A.Inheritance
- B.Polymorphism
- C.Abstraction
- D.Message passing
Show answer
Inheritance lets a derived, child or sub class take the members of a base, parent or super class and add its own, which is the main route to code reuse in object-oriented programming; its forms are single, multiple, multilevel, hierarchical and hybrid.
Read the full explanation →