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)👍
This was exactly what I was looking for, thank you so much!
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?
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?
Very good explanation. Addressed all the nuances that I was struggling with. Thanks!
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?
Clear explanation, well done
Great explanation! I hope your channel grows!
Which is the IDE that you are using?
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 ?
very good explanation, thanks!
Thankyou so munch man You made it clear
hello sir great video , how can we stop the parent class constructor to be used in the child class ? thanks
Thanks man!!!
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
thank you!
thank you very much
@ArM-wo6wd