Question: Please explain to me why the following code gives a compiler error? How should it be fixed? public class H2ClassE { int x, y, z;
Please explain to me why the following code gives a compiler error? How should it be fixed? public class H2ClassE { int x, y, z; H2ClassE (int a) { x = a; this (5, 12); } H2ClassE (int b, int c) { y = b; z = c; } } // end class H2ClassE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
