2011-10-24, 06:15 PM
I am assuming that you mean "compile" when you say "decompile". I am guessing that those summaries are just supposed to be descriptions of what the method does. You didn't ask about "public boolean equals" or "public String toString()" so I'm assuming that you're comfortable with the concept of functions that return a value. "void move" is just a function that doesn't return any value.
Is it supposed to be "public void move" or is it supposed to not have an access specifier?
You would call move like so:
Point point = new Point(5, 5); // Create the Point object
point.move(10, 15); // move it
Is it supposed to be "public void move" or is it supposed to not have an access specifier?
You would call move like so:
Point point = new Point(5, 5); // Create the Point object
point.move(10, 15); // move it

