Skip to Content
A Programmer's Introduction to Visual Basic® .NET
book

A Programmer's Introduction to Visual Basic® .NET

by Craig Utley
December 2001
Intermediate to advanced content levelIntermediate to advanced
360 pages
9h 6m
English
Sams
Content preview from A Programmer's Introduction to Visual Basic® .NET

Polymorphism

Polymorphism is the ability to change the implementation of a base class for different objects. For example, if you have a bicycle and a car, both can move, but they do so in very different ways. They use different mechanisms for movement, and the distance that each can move in an hour is significantly different. Yet, both a Car and a Bike class might inherit from a base Transportation class, which could also be used as the basis for a Plane class, a Train class, a HotAirBalloon class, and so on.

Polymorphism with Inheritance

Polymorphism was possible in VB6 using interfaces, which will be examined in a moment. VB .NET allows you to perform polymorphism using inheritance. The difference from what you have done so far is that you ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Visual Basic® Programmer's Guide to the .NET Framework Class Library

Visual Basic® Programmer's Guide to the .NET Framework Class Library

Lars Powers, Mike Snell
Application Development Using Visual Basic® and .NET

Application Development Using Visual Basic® and .NET

Robert J. Oberg, Peter Thorsteinson, Dana L. Wyatt
Visual Basic® .NET by Example

Visual Basic® .NET by Example

Gabriel Oancea, Bob Donald

Publisher Resources

ISBN: 0672322641Purchase book