Question: Which statement best describes the method of inheritance in OOP?
- Inheritance describes the ability to create new classes based on an existing class.
- Inheritance means that a group of related properties, methods, and other members are treated as a single unit or object.
- Inheritance forces a class to have a single responsibility from only one parent.
- Inheritance means that you will never have multiple classes that can be used interchangeably, even though each class implements the same properties or methods in different ways.
Answer: The correct answer of the above question is Option A:Inheritance describes the ability to create new classes based on an existing class.