Question

Which of the following best describes inheritance in object-oriented programming?

A It is a way to create multiple instances of a class.
B It is a way to define private members within a class.
C It is a way to reuse code and create a hierarchy of classes.
D It is a way to provide access to the internal details of an object.
Practice Next

Relevant for Exams:

Hey! Ask a query