Question: Why does the following code give a compiler error? How should it be fixed? 1 public class H2ClassE { 2 int x, y, z; 3
Why does the following code give a compiler error? How should it be fixed?
1 public class H2ClassE { 2 int x, y, z; 3 4 H2ClassE (int a) { 5 x = a; 6 this (5, 12); 7 } 8 9 H2ClassE (int b, int c) { 10 y = b; 11 z = c; 12 } 13 } // end class H2ClassE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
