Mike Wahler wrote:
>
> "i" wrote:
>> What is the difference between polymorphism and overloading?
>
> Polymorphism is the implementation of the
> OO 'is a' concept.
>
> Overloading is the assigning of different
> meanings to a single construct (e.g. operator,
> function) depending upon context.
"Polymorphism" is OO term - "one message has multiple implementations".
"Overloading" is C++ term and correct for non object oriented programs
also - "one function name can be used for some different functions with
different number of parameters".
Some kind of "polymorphism" in C++ can be implemented with the help of
"overloading".
--
Maksim A. Polyanin
http://grizlyk1.narod.ru/cpp_new
"In thi world of fairy tales rolls are liked olso"
/Gnume/