Friday, June 26, 2009

Polymorphism

The word polymorphism generally means the ability to assume several different forms or shapes. In programming terms it means the ability of a single variable of a given type to be used to reference objects of different types and to automatically call the method that is specific to the type of object the variable references. This enables a single method call to behave differently, depending on the type of the object to which the call applies.

To demonstrate the use of Interfaces and Polymorphism I created a small example. Click here to download the code.

No comments:

Post a Comment