Another mode of independence, multiple inheritance, which is also very simple.
There is one subclass back that's a Blastoise inheriting from lot of main classes or base classes.
OK, so Glasby and Glassie are being inherited by Class eight.
So this is like more number of base classes, but I think subclass, so that scored multiple inheritance.
So it's quite a feature in C++, very class, getting it done from more than one classes.
OK, so one subclasses inherited from more than one base class.
How you can either see index class subclass name, then this doctor, then you have to give that axis
more base class one separated by comma axis, more base class two, etc. two.
How many number you can define in number of classes to you mean ED.
Then you can go with that body of subclass.
Let's see a good example out here.
Here we have a class named Victor and also class name for wena.
And a third class is Escada, which is in how to think both the good and for.
OK.
And when you are creating an object of this class, you will be able to access all the other classes.
You going to access both formula and you get access vehicle and again, see a construct at all here.
So for we left, when you are creating the object of God board, these constructors will be card because
this maker function is inherited by God, and this four-Wheeler function is also inherited by Deepak.
So what will be the output of this program?
It will be.
This is a beta, and this is it for me.
Let me.
OK, now let's move to the third type of inheritance.
We're just multilevel inheritance.
This is also very.
Suppose you have a base class named C and that these meaning headed by a class No.
B and again class number B, serving as a base class four class number.
This is quite multi level inheritance, so you can see multiple levels here.
So one base class is acting as a subclass and at the same time, it is an asset based Class 14 other
class.
So there is like multiple levels of inheritance going on and this can be done in multiple levels.
Any number of levels like you can have a number of levels and you're getting it from one class below
that class and other classes coming in in that think we know that class and that class is coming in
inheriting.
So you can repeat this.
Yeah, no, I'm fine.
Anyway, this is going my deep level of inheritance.
So at the right classes created from another derived class and this goes on, this is quite my dilemma.
Inheritance.
Let's see.
Annex somber yet again sea based class Class B grade and it has been inherited by year four.
Wheeler is inheriting public behavior.
So this is this is all the constructor and every function will be coming out here and adalat God is
inheriting the four-Wheeler and if you create the object of subclass, it will invoke the Construct
Draft Board that base class A.
So and we are creating an object for car space object that will invoke all these three functions.
So this will show up.
This is a very vehicle object with all the hillside vehicles and ask one.
God has four wheels, so that will be the output bucket that is aboard the mighty Levitt inheritance.