Question: Find the error in the following class: public class MyClass { private int x; private double y; public void MyClass(int a, double b) { x
Find the error in the following class:
public class MyClass
{
private int x;
private double y;
public void MyClass(int a, double b)
{
x = a;
y = b;
}
}
Step by Step Solution
3.52 Rating (155 Votes )
There are 3 Steps involved in it
1 Find the error in the following class public ... View full answer
Get step-by-step solutions from verified subject matter experts
