# Polymorphism

*noun*

say it: **“pol-ee-MOR-fiz-um”** **/ˌpɒliˈmɔːrfɪzəm/**

Using one type, such as a base class or interface, to work with objects that each behave their own way.

## What is **Polymorphism** in C#?

**Polymorphism** — Using one declared type to work with objects that provide different implementations.

```csharp
class Alert
{
    public virtual string Text()
    {
        return "Alert";
    }
}

class EmailAlert : Alert
{
    public override string Text()
    {
        return "Email";
    }
}
```

## In a sentence

- “Thanks to **polymorphism**, one foreach over List&lt;Shape> draws circles and squares correctly.”

Level: Journeyman · [More C# terms at this level](https://www.ask-codey.com/glossary?category=c-sharp&level=3)

Updated: November 9, 2026

## In other subjects

- [Polymorphism in Java](https://www.ask-codey.com/glossary/polymorphism-java)
- [Polymorphism in JavaScript](https://www.ask-codey.com/glossary/polymorphism-javascript)
- [Polymorphism in OOP](https://www.ask-codey.com/glossary/polymorphism-oop)
- [Polymorphism in Python](https://www.ask-codey.com/glossary/polymorphism)

Source: https://www.ask-codey.com/glossary/polymorphism-c-sharp
