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