LANGUAGE

override modifier

Replaces inherited virtual behavior for the same virtual member.

Formal Syntax & Structure

csharp syntaxcsharp
public override int Fee() => 12;

Working Example

Example Snippetcsharp
public override int Fee() => base.Fee() + 7;
C# & .NET Reference