Share via


How to: Override Type Members

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

  1. On the class diagram, right-click a class shape, and choose Intellisense then OverrideMembers.

    A dialog box displaying overridable members appears.

  2. From the list, choose a member.

    A member with the same name, access modifier, return value, and signature appears as selected in the class, and its Override property is set to True.

See Also

Tasks

How to: Move a Type Member from one Type to Another

Other Resources

Refactoring Classes and Types