This is ppt presentation of multiple inheritance .
Size: 88.97 KB
Language: en
Added: Sep 11, 2017
Slides: 10 pages
Slide Content
Multiple Inheritance
Out lines of presentation What is inheritance? What is multiple inheritance? It’s application in our practical life. Example of multiple inheritace . Summary .
Inheritance: In object oriented programming , inheritance is when an object or class is based on another object or class ,using the same implementation. There are some types of inheritance given below: 1. single inheritance 2.multiple inheritance 3.multilevel inheritance 4.hierarchical inheritance 5.hybrid inheritance
Multiple inheritance: Multiple inheritance is a feature of c++ where a class can inherit from more than one classes. The constructors of inherited classes are called in the same order in which they are inherited. Here two or more base class and one derived class.
A simple program using multiple inheritance: #include< iostream > using namespace std; class info{ int id; public: void getid (){ cin >>id; cout <<id<< endl ;} }; class result{ int mark; public: void getmark (){ cin >>mark; cout <<mark<< endl ;} };
Application and importancey of multiple inheritance: When the situation is to need one or more base class to get derived class then it’s applicable.
Summary: Finally I wanted to mean you that what is inheritance , classification,multiple inheritance,and its application and how it works.I belived that acknowlegement of this topics will be uses related sector in future.