|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
||||
|
||||
|
What does "this" mean?
I know "this" means this, but what is this? When you write an applet, "this" refers to the applet? e.g.gBuffer.drawImage (back, 0, 0, this); Then when you write a class what does "this" refer to? e.g public void setPosition(int x, int y) { this.x=x; this.y=y; } What is "this"? Thank you for any help. |
|
#2
|
|||
|
|||
|
the keyword "this" refers to the current object...
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > What does "this" mean? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|