+ 2

Override of methods

Can you override all the methods in the base class in C++?

10th Jun 2020, 11:57 AM
Sanjay Kamath
Sanjay Kamath - avatar
3 Réponses
+ 2
Yes except base class constructors
10th Jun 2020, 1:58 PM
Anthony Maina
Anthony Maina - avatar
+ 2
Anthony Mainak : are you referring to the default constructer 👀
11th Jun 2020, 10:28 AM
Sanjay Kamath
Sanjay Kamath - avatar
+ 1
Yes but not only the default constructor but all the constructors that base class might have
11th Jun 2020, 10:31 AM
Anthony Maina
Anthony Maina - avatar