Re: the meaning of 'this'
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Sat, 25 Mar 2006 23:07:12 GMT
On Sat, 25 Mar 2006 12:37:17 -0800, BWill <brianwill1@xxxxxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :
(in fact, the
rule is that calling the parent constructor must be the first thing done
in a constructor). So the answer to your question is, what object 'this'
refers to depends upon the object being constructed:
Just to clarify, when you use super( ... ) you are calling the
constructor of the superclass. When you call this( ) you are calling
one of the other constructors of THIS class.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.
- References:
- the meaning of 'this'
- From: charles hottel
- Re: the meaning of 'this'
- From: BWill
- the meaning of 'this'
- Prev by Date: Re: why am I getting this error "varible temp1 might not have been initialized"
- Next by Date: Re: Streaming audio
- Previous by thread: Re: the meaning of 'this'
- Next by thread: I would like to open a frame with in a frame.
- Index(es):
Relevant Pages
|