This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
java:objects [2015/02/05 10:04] gthanos |
java:objects [2015/02/05 10:06] gthanos |
||
---|---|---|---|
Line 66: | Line 66: | ||
public int getWidth() { | public int getWidth() { | ||
return width; | return width; | ||
+ | } | ||
+ | |||
+ | public int getArea() { | ||
+ | return width * height; | ||
} | } | ||