Java   View all facts   Glossary   Help
syntactic unit > keyword > this
Next keywordthrow    Upkeyword    Previous keywordsynchronized   

this
subjectfact 
thishas definition A keyword that refers to the current object or is used instead of the class name as the constructor nameadded by: DS, source: Sun Java Tutorial, reference: Source 2, 2001-10-19 11:38:05.0
has example
 this.accountHolder = accountHolder;    
source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:38:05.0
has example
//Example of a constructor that calls another constructor in the same class using the keyword this
public Movie(int s, int a, int d, int m)}
this(s, a, d);
...
}
added by: JK, source: On To Java, 2001-10-19 11:38:05.0
has purpose to refer to the current object or is used instead of the class name as the constructor nameadded by: DS, source: Sun Java Tutorial, 2001-10-19 11:38:06.0
is a subtopic of Methods2001-10-19 11:38:06.0
is an instance of keywordadded by: DS, source: Sun Java Tutorial, 2001-10-19 11:38:06.0
represents the current object    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:38:06.0
syntactic unithas syntax rule
bold = mandatory
italic = non-terminal
normal font = optional
2001-10-19 11:38:04.0