This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
Hi I am new to this site..Please help me with the question below... What does "this" references. For example synchronize( RAndomCharacters.this ) and RandomCharacters.this.wait(); and this.a I am confused by all these... [ February 24, 2003: Message edited by: Arnold Tieu ]
posted 13 years ago
Hi Arnold, this references any object created by new HelloAnimThreadFirst() or any other constructed object for that matter. The code you posted is incorrect because the line new Thread(this) would have to be inside the class. Michael Morris [ February 24, 2003: Message edited by: Michael Morris ]
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher