-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: SitaramanM
Message 2 in Discussion

Hi  Ambrose   In a nutshell   "Overriding allows a subclass to alter or replace an 
existing method with the permission of the base class designer. Shadowing can be done 
without the permission of the base class designer, which is a risky proposition and 
one that requires extensive testing because the base class was never designed with 
such a thing in mind. 
Also, as we discussed earlier, overriding uses virtual methods so the implementation 
of the method that is invoked is based on the data type of the underlying object, not 
the data type of the variable we're using. When a method is shadowed it is not 
virtual, and it is the data type of the variable that dictates the implementation of 
the method that will be used. The data type of the underlying object is ignored"   
Check out the article  "Overriding My Shadows" at 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet12252001.asp.
 Gives you a clear understanding btwn overriding and shadows(new in C#).  It also has 
some gr8 samples to demonstrate the differences   hth         regards,   sr

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to