B
BratzeBritz
Gast
Warum ist folgendes nicht erlaubt ?
[/code]
Code:
class ABC {
// Konstruktor ohne Parameter
ABC() {
this(new XYZ(this)); // <----Fehler:Cannot refer to 'this' while explicity invoking a constructor ?????
}
// Konstruktor mit Parameter
ABC(XYZ xyz) {}
}
class XYZ {
XYZ(ABC abc) {}
}