In object-oriented design, which of the following concepts refers to the ability of an object to inherit properties and behavior from a parent object?
15 views
- Abstraction
- Encapsulation
- Polymorphism
- Inheritance (Correct Answer)
Explanation
Correct answer: d) Inheritance
Explanation: Inheritance is the concept in object-oriented design that refers to the ability of an object to inherit properties and behavior from a parent object. Abstraction refers to the process of identifying essential features of an object and ignoring the non-essential details. Encapsulation refers to the concept of combining data and functions into a single unit (a class). Polymorphism refers to the ability of objects of different types to be used interchangeably.