APM Welcome, APM North West Network Conference, Synergies Across Sectors
Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | inheritance in c++ with example ppt
1.
2. 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.
3. 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.
4. 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.
5. 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.
6. Types of Inheritance 1.) Single Inheritance 2.) Multiple Inheritance 3.) Hierarchical Inheritance 4.) Multiple Inheritance 5.) Hybrid inheritance