Sullivan Market

a web based full-circle development system



My Java Tutorials - The 'This' Keyword

Keywords -- The 'This' Keyword:

For Example...

1 class NyCircle {
2 int x, y, radius;
3
4 MyCircle(int xPoint, int yPoint, int radiusLength) {
5 this.x = xPoint;
6 this.y = yPoint;
7 this.radius = radiusLength;
8 }
9
10 MyCircle(int xPoint, int yPoint) {
11 this(xPoint, yPoint, 1);
12 }
13 }

Back To Java Tutorials

©2012 SullivanMarket.com