Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using classes of different types
Message
From
26/08/2005 13:36:19
 
 
To
26/08/2005 12:10:01
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01044144
Message ID:
01044381
Views:
14
You're welcome, Craig. Guess I'll be seeing you in a month!! =)

~~Bonnie



>Thanks, Bonnie...
>
>Exactly what I needed. Hope to see you at the Summit.
>
>
>
>>Hey Craig,
>>
>>Declare your worker class to be the base class, but instantiate it as the sub-class. Like this:
>>
>>    // Declaration
>>    private MyBaseClass worker;
>>
>>    // Instantiation
>>    this.worker = new MySubClass();
>>
>>
>>~~Bonnie
>>
>>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform