Polymorphism in C#
Polymorphism in C#: Polymorphism in C#: an overview, Changing Roles, Polymorphism with Base Classes.
Updated
- Polymorphism in C#: an overview (Apprentice): Polymorphism means "many forms". An object can be seen in more than one way, and code can work with whichever way it needs.
- Changing Roles (Apprentice): Through the day, people treat Chloe as a student, a singer or an athlete. Each sees only the role it needs. Polymorphism shifts focus in the same way.
- Polymorphism with Base Classes (Journeyman): A base class variable or list can hold any derived object, and calling a virtual method runs each object's own override. Use is to reach a derived class's own members.