Sir one have one confusion regarding hierarchical inheritance... I have a class B derived from base class A. Both of them have their respective constructors for initializing their respective data members say by accepting values through arguments from main function. The base class A has one constructor to initialise the member variables. Also, B also have its own constructor to initialise its data members. Finally, all the members of the class A are now available to derived class B. That means there are 2 constructors inside class B. Now, when when an obj of class B is declared, how do I pass arguments for each of the 2 constructors to initialise the respective data members??? Or which constructor is called first when the obj of class B is declared? Please make new video about this issue. I'm very confusing now.
Excellent teaching sir 👏 anyone can easily understand... 👏
Thanks a ton. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
Very clearly explanation. Thanks.
Glad it was helpful! Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
Super sir I clearly understand sir❤️🙏👍and very easy example tq so much sir
Welcome.Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Nice explanation sir 👍
Thanks Akila. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Thankyou very much sir
Great job ❤
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@@SudhakarAtchala absolutely,
Best regards from Pakistan,
Thank you so much sir ♥️
Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
Sir shall we have same method sum in both the derived classses.
Yes, function overriding
Thank you so much sir 🙏 and I have one doubt sir in header file #include
Replace to #include
we can use both ways. Plz subscribe to the channel and if possible share with your friends. Thanks in advance...
Sir one have one confusion regarding hierarchical inheritance...
I have a class B derived from base class A. Both of them have their respective constructors for initializing their respective data members say by accepting values through arguments from main function.
The base class A has one constructor to initialise the member variables. Also, B also have its own constructor to initialise its data members.
Finally, all the members of the class A are now available to derived class B. That means there are 2 constructors inside class B.
Now, when when an obj of class B is declared, how do I pass arguments for each of the 2 constructors to initialise the respective data members??? Or which constructor is called first when the obj of class B is declared?
Please make new video about this issue. I'm very confusing now.