Java - Inheritance
Given the class below, what will be the output when
new Box(); is executed?class Box {
Box() {
this(3, 4);
System.out.print("X");
}
Box(int w, int h) {
this(w, h, 5);
System.out.print("Y");
}
Box(int w, int h, int d) {
System.out.print("Z");
}
}