Write a Box class with a field called size. Its constructor and its setSize method both take a parameter also called size. Use this.size to tell the field apart from the parameter, or the assignment does nothing at all.
class Box { Box(int size); void setSize(int size); int getSize(); }
Examples
There are also 3 hidden tests you can't see. Solve the problem, not the examples.