Introduction
The term polymorphism means many forms. In computer science, it refers to the ability of a single symbol (i.e. a function or class name) to represent multiple types. Some form of polymorphism can be found in nearly all programming languages.
While encapsulation of state and behavior into objects is the most central theoretical idea of object-oriented languages, polymorphism - specifically in the form of inheritance is a close second. In this chapter we’ll look at how polymorphism is commonly implemented in object-oriented languages.
Key Terms
Some key terms to learn in this chapter are:
- Polymorphism
- Type
- Type Checking
- Casting
- Implicit Casting
- Explicit Casting
- Interface
- Inheritance
- Superclass
- Subclass
- Abstract Classes
C# Keywords:
Interface
protected
abstract
virtual
override
sealed
as
is
dynamic