Poly means many and morph means form. Thus, polymorphism refers to being able to use many forms of a type without regard to the details.
Polymorphism have 2 types :
1. Compile time also called overloading have 3 types.
· Constructor overloading (i.e., with same constructor name and different no of arguments or different datat types or both )
· Function overloading (i.e., with same function name and different no of arguments or different data types or both)
· operator overloading: example : Variable++;
2 Run time
· It is achieved by overriding parent class method: