PDA

View Full Version : overloading and polymorphism in c++



saneha
04-29-2011, 08:28 AM
overloading and polymorphism

Dear Sir, please elaborate what is the difference between overloading and polymorphism as overloading also works the same way. I read from different intersits defining overloading is a kind of polymorphism. Thanks

Vuhelper
04-29-2011, 08:29 AM
Overloading is an implementation of polymorphism.

Polymorphism is an abstract concept.

Polymorphism allows a single definition for multiple data types. Overloading is a specific case of polymorphism where some operators have different implementations depending on the types of arguments.