________ is mechanism by which one class acquires the properties – data fields…
2023
________ is mechanism by which one class acquires the properties – data fields and methods of another class.
- A.
Class
- B.
Encapsulation
- C.
Inheritance
- D.
Polymorphism
- E.
Question not attempted
Attempted by 296 students.
Show answer & explanation
Correct answer: C
Inheritance is the mechanism by which one class (child/subclass) acquires the properties (data members) and methods of another class (parent/superclass).