Java requires that a method declare the data type of the value that it returns. If a method does not return a value, it must be declared to return void.
In your case,
setSize() method is declared with returntype
void, so no return value required.
getSize() method is declared with returntype
int, that's why it should return an object of an integer.
where is the value returned to?
value is returned to an intance that called it...
regards,
-Jadz