java:this_operator

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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;
   }   }
   ...   ...
java/this_operator.txt · Last modified: 2017/02/16 11:24 by gthanos