Question

What is 'inheritance' in Object-Oriented Programming?

A The process of creating multiple objects from a single class with every object having its own attributes
B The mechanism by which one class acquires the properties and behaviours of another class
C The process of hiding sensitive data from unauthorized access
D The mechanism of converting a subclass object to its superclass type
E The mechanism of running multiple threads simultaneously within the same class
Practice Next

Relevant for Exams:

Hey! Ask a query