 Hello friends, I am Sanjay Gupta. In this video, I am going to demonstrate you how you can implement parameterized constructor in multiple inheritance in C++. Before starting, you can note my information. You can follow my YouTube channel, that is Sanjay Gupta underscore tax school. You can download my app, that is Takamis, which is available on Google Play. This app is based on various programming languages. Now, coming on to the topic, in this demonstration, I have implemented a code written in C++. You can see I have included a header file IO string. Then I have used a namespace that is STD. Then class A is implemented, which is having one attribute that is X. Then its parameterized constructor is implemented, which is receiving a parameter in A. And then A is assigned into X. And C out will print constructor of class A messes on console. Then show method is defined, which will display value of X on console. This is the definition of class A. Then another class B is implemented, which is having attribute Y. Then its parameterized constructor is implemented, which is receiving parameter in B. B is assigned into Y. And this constructor will print the messes constructor of class B on console. Its method show is defined, which will display value of Y on console. So this way two classes A and B are defined. These classes will become base classes for class C. Here you can see definition of class C. Class C is derived class and it is inheriting class A and class B. So A and B both are working as base class and C class is working as derived class here. Then C class is having one attribute that is Z. Then its parameterized constructor is implemented. It is receiving three parameters A, B and C. Here it is passing A into base class A, B into base class B. And this notation is known as explicit invocation of base class constructor. So C class constructor is responsible for calling constructor of A and constructor of B class. Then attribute Z is initialized with values that is stored inside C. And a messes constructor of class C will be printed through this constructor. Then inside show function of class C, show function of class A and B are called using scope resolution operator. And then value of Z will be displayed. So this way I have implemented three classes. Class A and B are base class and class C is derived class. In main function you can see object of class C is created which is receiving three parameters 5, 10 and 15. These 5, 10 and 15 will be stored here inside ABC. A and B both are passed in base classes and C is assigned into derived class attribute. Then show method is called. Now you have to notice that order of calling of constructor is derived class to base class. So first C class constructor will be called and then A and B. But order of execution of constructor is based to derived. So first base class constructors will be executed and then derived. So here two base classes are available. So priority will be decided by this order of inheritance. So A is first base class and B is second base class. So A constructor will be executed first, then B class constructor will be executed and then C class constructor will be executed. Now I am executing this code. You can see the output constructor of class A, constructor of class B and constructor of class C. These messages are printed through constructors of each class. Then while executing show method X, Y and Z these are printing their values. If I change the order of inheritance that is B and A. Now you can see the output constructor of B class is executed first then constructor of class A and then constructor of class C. Show method is executed in the same order that is X, Y, Y 10 and Z is 15. You can also pass different values here like if I pass B and if I pass A here then it is also correct. So this time value of B will be assigned into A class constructor and value of A will be assigned into B class constructor. So this way you can implement parameterized constructor in multiple inheritance which is available in C++. I hope you have understood the concept well. If you want to watch more programming related videos you can follow my YouTube channel that is Sanjay Gupta underscore tech school. You can download my app TechMS that is available on Google Play. Thank you for watching this video.