Inheritance

This lesson discusses interview questions on inheritance.

We'll cover the following...

Question # 1

What is inheritance?

In object-oriented programming, inheritance enables new objects to take on the properties of existing objects. A class that is used as the basis for inheritance is called a superclass or base class. A class that inherits from a superclass is called a subclass ...