Rated
Read 44,360 times
Contents
Related Categories
Polymorphism in VB - Introduction
Introduction
Many of you will have heard of Polymorphism, but I also expect
very few of you actually know what it is! In this tutorial, I try to explain
exactly what polymorphism is, how to use it in Visual Basic, and why we should
bother using it....
James first started writing tutorials on Visual Basic in 1999 whilst starting this website (then known as VB Web). Since then, the site has grown rapidly, and James has written numerous tutorials, articles and reviews on VB, PHP, ASP and C#. In October 2003, James formed the company Developer Fusion Ltd, which owns this website, and also offers various development services. In his spare time, he's a 3rd year undergraduate studying Computer Science in the UK. He's also a Visual Basic MVP.
Comments
If you need to access methods specific to that object, then you need to declare a variable for that object. For instance,
Dim obj As myActualObject
Set obj = New myActualObject
rather than t... -
Posted by phracker76 on 02 Jan 2004
good stuff this -
Posted by Sparvhok on 22 Oct 2003
Hi there,
Great article, very interesting. But when I tried to implement the idea it worked well until. When trying to create public methods in the Implementing Classes of the Interface other than ...
|