override

The C# modifier that declares a replacement for an inherited virtual or abstract member, or for methods such as Equals and ToString.

In more detail

The replacement must have the same signature as the member it replaces. The compiler insists on the keyword, and at run time the override on the object's real type is the one that runs.

Related terms

Taught in

References