Q. What is the purpose of inheritance in OOP?
- A. To hide the implementation details
- B. To allow a class to inherit properties and behaviors from another class
- C. To restrict access to certain methods
- D. To hide the implementation details
Correct Answer: B