Question

What is the purpose of Inheritance in Object-Oriented Programming?                            

A To allow one object to create another object
B To allow one class to inherit properties and methods from another class
C To enable the hiding of internal details of an object
D To allow the association between two independent objects
E To enable communication between objects of different types
Practice Next

Hey! Ask a query