When there is an hierarchy of classes the constructor of the subclass, in this case SubSubAlpha
, always calls (first) the constructor of the superclass, in this case Alpha
.
So what happens is actually:
private SubSubAlpha() {
super();
s += "subsub ";
}
Thus, this makes:
s += "alpha ";
s += "subsub ";
Making the string "alpha subsub "