+ 2
I don't understand. What should I do to avoid the execution of constructor base class by creating derived class?
4 Respuestas
+ 1
You don't have to. Just leave the base class's constructor blank as default.
+ 1
I believe constructor overloading would give you a choice on which constructor to use when creating an instance of a derived class. Or you could leave the constructor implementation explicitly to the derived classes and leave the base Class' constructor blank, as Zhiyuan stated.
0
constructor run every time u call class and the first thing run on the class it is.
0
you dont have to create a construtor