@Test public void toStringTest() { Size size = new Size(20, 10); assertEquals("toString() result is incorrect", "(20,10)", size.toString()); }
@Override public String toString() { return "(" + width + "," + height + ")"; }
Size { @Override public String toString() { return "(" + width + "," + height + ")"; } }
Size { @Override public String toString() { return "(" + width + "," + height + ")"; } Size();  Size(int width, int height); }
Size { @Override public String toString() { return "(" + width + "," + height + ")"; } Size();  Size(int width, int height); void setWidth(int width); void setHeight(int height); int getWidth(); int getHeight(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); Size minus(Size aSize); Size add(Size aSize); Size append(int width, int height); Size append(Size aSize); }
Size { @Override public String toString() { return "(" + width + "," + height + ")"; } Size();  Size(int width, int height); void setWidth(int width); void setHeight(int height); int getWidth(); int getHeight(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); Size minus(Size aSize); Size add(Size aSize); Size append(int width, int height); Size append(Size aSize); static final Size ZERO_SIZE; }