virtual

The C# modifier for a member that has a working body a derived class may replace with override.

In more detail

Calls to a virtual member are dispatched on the object's real type at run time. Members are not virtual by default in C#, so a base class must opt in to being extended.

Related terms

Taught in

References