+ 3
Well, the base class has to be constructed in some way. If you don't want to pass arguments to its constructor then you need a constructor in the base class that doesn't take any arguments. If you don't want this constructor to be callable from the outside then you can put the constructor of the base class under protected.
27th Jun 2022, 8:34 AM
Dennis
Dennis - avatar
+ 2
Yes
27th Jun 2022, 9:04 AM
Dennis
Dennis - avatar