What is wrong in the following code?
1 public class C {2 private int p;34 public C() {5 System.out.println("C's no-arg constructor invoked");6 this(0);7 }89 public C(int p) {10 p = p;11 }1213 public void setP(int p) {14 p = p;15 }16 }
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.