Thursday, November 15, 2001 09:50 AM
this is used for object to refer to itself. say you have a class that has an attribute name. say you have a method in this class that also defines a variable name. if inside of this class you say 'name' it refers to the variable declared inside the method. if you want to access class attribute name within this method you need use syntax this.name. also, at times you want object to send itself to another object for processing or some other purpose. what you can do is,
public void process()
there are other uses, but this is good for the start.