How to: Override Type Members (Class Designer)
In Class Designer, you can allow members such as methods and properties in a child class to override members inherited from a base class. Overriding a member is possible only if the following circumstance applies:
- The base method being overridden must be virtual, abstract, or override. (It cannot be non-virtual or static.)
To override a member
On the class diagram, right-click a class shape, and choose Intellisense then OverrideMembers.
A dialog box displaying overridable members appears.
From the list, choose a member.
A member with the same name, access modifier, and return value, appears in the class, and its Inheritance Modifier property is set to Overrides in VB, or override in C#.
See Also
Tasks
How to: Move a Type Member from one Type to Another (Class Designer)