You’ve now learned a lot about inheritance and overriding of class members. So, how can you put those techniques to use? For inheritance and function overriding to make complete sense, you use a technique called polymorphism.[14] If you asked me to describe polymorphism in one sentence, I would ask you to wait, and then give you the following answer: “Polymorphism in OOP describes a possibility for exchanging methods or properties in the classes of a class inheritance hierarchy, and to be able to reach a method that has the same name, but different functionality, of the modified classes in the inheritance hierarchy via the same object variable of the type base class dependent on the actual instantiated derived class.”


I realize ...

Get Microsoft® Visual Basic® 2010 Developer’s Handbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.