# Method Overriding

*noun*

say it: **“METH-ud oh-ver-RY-ding”** **/ˈmɛθəd ˌoʊvərˈraɪdɪŋ/**

A subclass replacing a method it inherited with its own version of it.

## What is **Method Overriding**?

**Method overriding** is when a child class replaces a method it inherited with its own version. Every `Animal` can `Speak()`, but a `Dog` overrides it to say "Woof".

```csharp
public class Animal
{
    public virtual string Speak() => "...";
}

public class Dog : Animal
{
    public override string Speak() => "Woof";
}
```

## In a sentence

- “The e-bike's $15 rate comes from **method overriding**: it replaces the bike's price.”

Level: Apprentice · [More OOP terms at this level](https://www.ask-codey.com/glossary?category=oop&level=2)

Updated: November 9, 2026

## In other subjects

- [Method Overriding in C#](https://www.ask-codey.com/glossary/method-overriding-c-sharp)
- [Method Overriding in Java](https://www.ask-codey.com/glossary/method-overriding-java)
- [Method Overriding in JavaScript](https://www.ask-codey.com/glossary/method-overriding-javascript)
- [Method Overriding in Python](https://www.ask-codey.com/glossary/method-overriding)

Source: https://www.ask-codey.com/glossary/method-overriding-oop
