Data Structures and Algorithms
with Object-Oriented Design Patterns in C# |
Polymorphism literally means ``having many forms.'' Polymorphism arises when a set of distinct classes share a common interface. Because the derived classes are distinct, their implementations may differ. However, because the derived classes share a common interface, instances of those classes are used in exactly the same way.