java:inheritance
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| java:inheritance [2021/04/02 14:19] – gthanos | java:inheritance [2022/03/11 05:21] (current) – gthanos | ||
|---|---|---|---|
| Line 34: | Line 34: | ||
| public int getHeight() { | public int getHeight() { | ||
| return height; | return height; | ||
| - | } | ||
| - | | ||
| - | int area() { | ||
| - | return width * height; | ||
| } | } | ||
| | | ||
| Line 99: | Line 95: | ||
| public Point getOrigin() { | public Point getOrigin() { | ||
| return origin; | return origin; | ||
| + | } | ||
| + | | ||
| + | int area() { | ||
| + | return width * height; | ||
| } | } | ||
java/inheritance.1617373148.txt.gz · Last modified: 2021/04/02 13:19 (external edit)
