Tuesday 21 April 2015

Polymorphism

Polymorphism in biology means the ability of an organism to assume a variety of forms. In C++, it indicates the form of a member function that can be changed at runtime. Such member functions are called Virtual Functions and the corresponding class is called Polymorphic Class.

The objects of the polymorphic class, addressed by pointers, change at runtime and respond differently for the same message. Such a mechanism requires postponement of binding of a function call to the member function until runtime.


No comments:

Post a Comment