Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     




Polymorphism

The word ‘Polymorphism’ has been made by using two Greek words- ‘Poly’ and ‘Morphism’. ‘Poly’ means many and ‘Morphism’ means forms. Thus ‘Polymorphism’ means one name multiple forms. In it we can use the same thing for different purposes.

Polymorphism is of two types:-

Polymorphism Image

Polymorphism means to use one thing for multiple purposes. When this decision is taken during compilation time, that the thing will be used for what purpose, the process is called ‘Compile Time Polymorphism’ or ‘Early Binding’. But when this decision is taken during run time, the process is called ‘Run Time Polymorphism’ or ‘Late Binding’.

Compile time polymorphism is achieved using function overloading and operator overloading. Whereas run time polymorphism is achieved using virtual functions.

Share this article   |    Print    |    Article read by 1767 times
Author:
Rohit kakria
I am software developer, moderator of xpode.com
Related Articles: No related article
Related Interview Questions: No related interview question