C++Tutorial for Beginners 53 - Constructor Inheritance

preview_player
Показать описание
-------------------------------------------------------------------------------------------------------------------------------------------
Constructors are actually not inherited in C++, but the ARE run when you create an object from a subclass of some other class. It's important to understand how your objects get initialised by the constructor hierarchy when you create an object.
--------------------------------------------------------------------------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

Neat screen, clear voice and beautifully presented with clarity. 6 years later, this video helped me get through a chapter in my High School class. I love the Internet so much

immaculate
Автор

Wow bro, that's exactly what confused me a lot. Thank you very much!

konig
Автор

thanx man ! i was struggling to understand this

AbdulZurghani
Автор

I got the idea that the super class constructors are not inherited, as we cannot call them by creating an object of derived class, , but how does the super class constructor is called then if it is not part of the subclass like normal member functions.How does it work at the memory??
Great video BTW!!

dharmanshah
Автор

Isn't it just easier to use protected ?

kaidlokmic
Автор

very difficult to follow in one file writing out all the code

julioramos