Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Quick C++ Question

Name: Ted 2011-03-08 20:37

What's the difference between polymorphism and operator overloading? The book I'm reading says that polymorphism is like overriding member functions, but it's "dynamic and determined at run time depending by object type."
It seems to me that polymorphism is operator overloading for member functions. Is that correct? If not, what's the difference?

Name: Anonymous 2011-03-08 22:00

Overloading is an implementation of polymorphism. Operator overloading is a language specific resource to implement polymorphism.

Don't change these.
Name: Email:
Entire Thread Thread List