0

Base constructor

Is the base constructor always called when a derived class is instantiated? If so, is this why you can upcast to base class or downcast to derived class? https://code.sololearn.com/c35dnxIh68Em/?ref=app

3rd Oct 2021, 10:42 AM
Tim
Tim - avatar
1 ответ
+ 2
No when you create ur own default constructor it is not called but the constructor made by you and here you are not making any objects of Animal constructor also
3rd Oct 2021, 10:44 AM
Atul [Inactive]