|
June 12, 2002 The override Marker Tips: June 2002
Yehuda Shiran, Ph.D.
|
|
When you extend a base class, nothing
prevents you from defining methods and properties for the new class with the same
names as those of the base class. Who wins in this name conflict? Does the base
class override the new class? Or does the new class take over the base class,
as their names imply?
Luckily, JScript .NET is rich
enough to let you choose the desired behavior. By default, a method or property
marked with To learn more about JScript .NET, go to Column 110, JScript .NET, Part IV: Inheritance.
People who read this tip also read these tips: Look for similar tips by subject: |
| ||||||||||||||||||||