How Constructors Work With Inheritance | C++ Tutorial

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Easily the most concise explanation on this topic on YT. You answered every single one of my questions. Thanks a lot and I hope you get more recognition for your awesome work!

ArM-wowd
Автор

Insanely underrated video lectures you are giving out for free, I am going to college soon and this has been a great help, will share with my friends(if i make any)👍

nugget
Автор

This was exactly what I was looking for, thank you so much!

victorsuarez
Автор

Very good explanation. Addressed all the nuances that I was struggling with. Thanks!

shovnikpaul
Автор

Great explanation! I hope your channel grows!

itsme-ocvl
Автор

Hi, thanks it was a plain and good explanation, yet I have this question, is it possible to instantiate the derived and base class param constructor in run time, for example at the end you instantiated the base class at run time by giving it a string is there any notation which I could give the string and the ounces at the same time?

behzad.tabari
Автор

Thankyou so munch man
You made it clear

David-mkkh
Автор

Hello, thank you for this video, however I have faced a problem working on a project, what if the based param constructor was protected and not public, how can we use it from the derived constructor ?

deadapprox
Автор

hello sir great video, how can we stop the parent class constructor to be used in the child class ? thanks

muhammadluqman
Автор

One question: What if my base class has only a constructor with parameters, and my derived class has only a seperate constructor with parameters? Is there a way to put in parameters for both constructors at the same time?

gavinthecrafter
Автор

dude you are a legend I have been stuck with that error with the parametrized constructor and no default one

but actually, the using base_class::base_class Methode didn't work with me I don't know why

mowafkmha
Автор

Okay that's cool, but what if I need to call the base class constructor with some parameters (not hard-coded into the derived class) and then also the derived class constructor with more parameters? For example, making an instance of Drink with the name "hot chocolate" and a volume of 7 ounces?

Would it look something like Drink( string name, double ounces ) : MenuItem( name ) ? Or is it something different?

mymo_in_Bb
welcome to shbcf.ru