Question: Find the error in the following class: public class TwoValues { private int x, y; public TwoValues() { x = 0; } public TwoValues() {
Find the error in the following class:
public class TwoValues
{
private int x, y;
public TwoValues()
{
x = 0;
}
public TwoValues()
{
x = 0;
y = 0;
}
}
Step by Step Solution
3.43 Rating (172 Votes )
There are 3 Steps involved in it
Find the error in the following class ... View full answer
Get step-by-step solutions from verified subject matter experts
