Playing Compiler
Identify the errors in the following classes.
public class Huh { private int x; int y; protected int z; public Huh() { x = y = z = 0; } public Huh(int x) { x = y = z = x; } public void iLikeIt(int x) { System.out.println(x * x * x); } public void iHateit() { System.out.println(y * y); } } public class Hoo extends Huh { int w; public Hoo() { w = 0; super(); } public Hoo(int x) { super(x); w = x; } public int myOwn() { System.out.println(w); } public void iLikeIt(int x) { System.out.println(x * x); } private void iHateit(() { System.out.println(w * w); } }
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.