Re: the meaning of 'this'



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.
.



Relevant Pages

  • Re: Object passing
    ... crash MATLAB and/or your computer. ... Your constructor is ... calling something else which is calling the constructor ... classdef b < handle ...
    (comp.soft-sys.matlab)
  • Re: Unusual usage of IUknown
    ... ptA = new A; ... calling V constructor, szData=V ... calling A destructor, szData=A ...
    (microsoft.public.vc.language)
  • Re: Unusual usage of IUknown
    ... char * szData; ... calling V constructor, szData=V ... calling A destructor, szData=A ...
    (microsoft.public.vc.language)
  • Re: Assembly problem
    ... Theodore ... > System.Windows.Forms is that the method you are calling GetCallingAssembly ... > the constructor is being invoked by assembly A. If A does not construct ... >> which in turn calls class B located in another dll file. ...
    (microsoft.public.dotnet.general)
  • Re: Object passing
    ... Maximum recursion limit of 500 reached. ... crash MATLAB and/or your computer. ... Your constructor is ... calling something else which is calling the constructor ...
    (comp.soft-sys.matlab)