Question

What is the main purpose of Inheritance in OOP?

A To hide implementation details.
B To allow objects to take on many forms.
C To create new classes by reusing, extending, and modifying the behavior of existing classes.
D To bundle data and methods into a single unit.
E To define a contract for class behavior.
Practice Next

Hey! Ask a query