Find the error in the following class: public class MyClass { private int x; private double y;

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 = a;
 y = b;
 }
}

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: