public Robot was fine as it's his constructor.
As long as there aren't any statements after his returns, he won't be given any compile-time errors.
Good try though :)
Type: Posts; User: newbie
public Robot was fine as it's his constructor.
As long as there aren't any statements after his returns, he won't be given any compile-time errors.
Good try though :)
Only read a tiny bit, You need to give more detail as to what the error is that you're getting.
A quick thing i noticed that I'm assuming that you need is
public Robot(double x, double y) {...