How to call Super::printThree from Super::Super()?
In the example below I call Test::printThree instead.
class Super {
Super() {
printTh
If Super needs to ensure that printThree() isn't overridden, that method needs to be declared as final. Alternatively, the overriding method in Test can decide to call the overriden method if it chooses:
@Override
void printThree() { super.printThree(); }
If the base class doesn't mark a method as final, it's giving up the right not to have deriving classes override it and do as they please.