Skip to content

Instantly share code, notes, and snippets.

@ChrisMoney
Created May 23, 2024 13:44
Show Gist options
  • Save ChrisMoney/ba4b77acf81d521328857ecf93adb21e to your computer and use it in GitHub Desktop.
Save ChrisMoney/ba4b77acf81d521328857ecf93adb21e to your computer and use it in GitHub Desktop.
Virtual Method
public virtual void MakeSound()
{
Console.WriteLine("The animal makes a sound");
}
public override void MakeSound()
{
Console.WriteLine("The cat meows");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment