Wednesday, September 24, 2008
Polymorphism
In object-oriented programming, polymorphism is a generic term that means 'many shapes'. (from the Greek meaning "having multiple forms"). Polymorphism is briefly described as "one interface, many implementations." polymorphism is a characteristic of being able to assign a different meaning or usage to something in different contexts - specifically, to allow an entity such as a variable, a function, or an object to have more than one form. There are two types of polymorphism one is compile time polymorphism and the other is run time polymorphism. Compile time polymorphism (early binding) is functions and operators overloading. Runtime time polymorphism (late binding) is done using inheritance and virtual functions.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment