This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
java:this_operator [2016/02/16 21:17] gthanos [Πρόσβαση σε πεδία και μεθόδους των αντικειμένων της κλάσης μέσω του τελεστή this] |
java:this_operator [2016/02/16 21:17] gthanos [Πρόσβαση σε πεδία και μεθόδους των αντικειμένων της κλάσης μέσω του τελεστή this] |
||
---|---|---|---|
Line 32: | Line 32: | ||
| | ||
// the Rectangle class has one constructor | // the Rectangle class has one constructor | ||
- | public Rectangle(int width, int height, Point o) { | + | public Rectangle(int width, int height, Point origin) { |
this.width = width; | this.width = width; | ||
this.height = height; | this.height = height; | ||
- | this.origin = o; | + | this.origin = origin; |
} | } | ||
... | ... |