What is Inheritance?
In this lesson, we'll be learning about the core concept of the object-oriented paradigm, i.e., Inheritance and why there is a need for it?
We'll cover the following...
We'll cover the following...
Why do We Need Inheritance?
In the classes chapter, we’ve covered the HAS-A relationship. We know a class HAS-A data members and member functions. Now, we want the data members, and member functions of the class are accessible from other classes. So, the capability of a class to derive properties and characteristics from another class is called Inheritance ...