Question

Inheritance is an OOP principle that establishes an "is-a" relationship between classes. What does this relationship primarily allow?

A An object to have multiple forms.
B A class to hide its internal data.
C A new class (subclass) to acquire properties and behaviors from an existing class (superclass).
D The bundling of data and methods into a single unit.
E The ability to define abstract methods.
Practice Next

Hey! Ask a query