Re: from a tutorial
From: David (dfoster_at_woofix.local.dom)
Date: 12/09/04
- Next message: David: "Re: Complex attributes in MbUnit, Rowtest and Row"
- Previous message: Supra: "everytimes i modified code ..........."
- In reply to: Herfried K. Wagner [MVP]: "Re: from a tutorial"
- Next in thread: Herfried K. Wagner [MVP]: "Re: from a tutorial"
- Reply: Herfried K. Wagner [MVP]: "Re: from a tutorial"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 09 Dec 2004 03:41:25 -0800
On 2004-12-09, Herfried K. Wagner [MVP] <hirf-spam-me-here@gmx.at> wrote:
> "rodchar" <rodchar@discussions.microsoft.com> schrieb:
>> Does this mean that if this class gets instantiated there will be 2
>> objects
>> because of the MyBase.New line? what would be the reasons for using the
>> line
>> mybase.new?
>
> It's one object, but each instance of the derived class is an instance of
> the base class too (inheritance /extends/ the base class, it adds something
> to it). That's why the base class' constructor has to be called. There are
> some situations where it's not necessary to explicitly call it -- in these
> cases, the compiler will add the call to the base class' 'New' method.
And in fact this is one of those times. If the call to MyBase.New were
deleted, the compiler would implicitly put it right back in anyway.
- Next message: David: "Re: Complex attributes in MbUnit, Rowtest and Row"
- Previous message: Supra: "everytimes i modified code ..........."
- In reply to: Herfried K. Wagner [MVP]: "Re: from a tutorial"
- Next in thread: Herfried K. Wagner [MVP]: "Re: from a tutorial"
- Reply: Herfried K. Wagner [MVP]: "Re: from a tutorial"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|