Polymorphism refers to the ability to define multiple classes with functionally different, yet identically named methods or properties that can be used interchangeably by client code at run time.
In This Section
- How Visual Basic Provides Polymorphism
- Illustrates different approaches to polymorphism.
- Inheritance-Based Polymorphism
- Discusses using inheritance to achieve polymorphism.
- Interface-Based Polymorphism
- Discusses using interfaces to achieve polymorphism.
Related Sections
- When To Use Interfaces
- Discusses when to use interfaces instead of an inheritance hierarchy.
- When to Use Inheritance
- Provides information about when you should use inheritance instead of interfaces.