June 18, 2002 - Changing the Base Class Members
June 18, 2002 Changing the Base Class Members Tips: June 2002
Yehuda Shiran, Ph.D.
|
override
to the member definition, as we have shown in Column 110. When you override a member, the behavior of both base objects and derived objects change. They all sport the new behavior. When you want to change the behavior of derived objects and keep the original behavior of base objects, mark your derived members with hide
. The base members are hidden from the derived members (with the same name, of course). We have covered how to use the hide
modifier in Column 110.To learn more about JScript .NET, go to Column 110, JScript .NET, Part IV: Inheritance.