I have just started taking Java as a course in college and I am having a problem understanding how to find the syntax errors in a definition for a class.I am not asking for answers I just need help understanding it more.
The class is
public class AA
{
private int x;
private int y;
public void print()
{
System.out.println(x + " " +y);
}
public int sum ()
{
return x + y;
}
public AA ()
{
x = 0;
y = 0;
}
public int AA(int a, int b)
{
x = a;
y = b;
}
}
please help it is very urgent that i understand this.