In the rules round up game #335 It says "constructors are not inherited" because "subclasses do not get a constructor from the superclass". Can someone explain this? I thought subclasses get the "super()" constructor by default, if no constructor is given in the sub-class.
Yeah, constructors don't get inherited. The super() is a call to the default ctor of the immediate parent of a class. ...It says "constructors are not inherited" because "subclasses do not get a constructor from the superclass".... ...and the sky is blue because blue is the color of the sky...
Oh, I should have mentioned that a call to super() is implicit if you don't make the call to it or to any other, overloaded parent-class ctors. I hope that helps a bit more!
I've got no option but to sell you all for scientific experiments. Or a tiny ad:
a bit of art, as a gift, that will fit in a stocking