This documentation is archived and is not being maintained.

Polymorphism

Visual Studio 2008

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.

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.

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.

Show: