Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | inheritance in c++ with example ppt
What is Inheritance Inheritance is one of the important feature of the OOP. Inheritance is the method by which objects of one class gets the properties of another class.
Advantages of Inheritance ? Sometimes we need to repeat the code or we need repeat the whole class properties. So It helps in various ways. 1.) It saves memory space. 2.) It saves time. 3.) It will remove frustration. 4.) It increases reliability of the code 5.) It saves the developing and testing efforts.
Why we use Inheritance ? To increase the reusability of the code and to make further usable for another classes. We use the concept of inheritance.
How Inheritance can be achieved ? In the inheritance there will be a parent child relationship .There is a class called in which all the properties are defined and generally, it is refered as a base class.There is also an another class in which is derived from the existing one are known as a derived class.
Types of Inheritance 1.) Single Inheritance 2.) Multiple Inheritance 3.) Hierarchical Inheritance 4.) Multiple Inheritance 5.) Hybrid inheritance
Get more programming tutorial www.cprogrammings.com