0Pricing
C# Academy · Lesson

Polymorphism and Method Overriding

Master polymorphism to create flexible and reusable code through method overriding.

1

Polymorphism and Method Overriding

Welcome to the next lesson! In this lesson, you’ll learn about polymorphism, an essential concept of Object-Oriented Programming, and how it allows you to override methods to provide flexible and reusable code. Let’s get started!

Polymorphism and Method Overriding — illustration 1

2

What is Polymorphism?

Polymorphism means "many forms" and allows objects of different classes to be treated as objects of a common base class. This enables flexibility and reusability in your code.

Example: A method can behave differently depending on the type of object it is working with.

Key Point: Polymorphism is achieved in C# through method overriding and interfaces.

All lessons in this course

  1. What is Object-Oriented Programming?
  2. Defining Classes and Objects
  3. Understanding Properties and Methods
  4. Constructors in C#
  5. Encapsulation and Access Modifiers
  6. Inheritance: Reusing Code
  7. Polymorphism and Method Overriding
← Back to C# Academy