The
this keyword allows you to reference the current object. For example:
In the setter method we are setting the value of the integer instance variable i (via this) to the method argument i. The
this keyword can also be used to call one constructer from another.
A good beginner's book on
Java such as Head First Java would be a great start on getting a handle of Java fundamentals.
Here's a reference on the this keyword from the Java Tutorial:
Using the this keyword Regards,
JD
[ January 24, 2006: Message edited by: John Dell'Oso ]
[ January 24, 2006: Message edited by: John Dell'Oso ]