| | Overriding My Shadows (Adventures in .NET) |
 | | Methods can always be replaced by shadowing, which I'll discuss next, but overriding is the preferred method of altering or replacing a method on a base class because overriding is done with the permission of the base class designer. |
 | | Rather than changing the method name in the subclass to avoid the conflict, and thus rewriting all the client code, we may simply choose to ignore the new base class method and continue using the existing method on the subclass. |
 | | 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. |
| msdn.microsoft.com /library/en-us/dnadvnet/html/vbnet12252001.asp (3895 words) |