difference

M

Mike Wahler

i said:
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.

-Mike
 
G

Grizlyk

Mike said:
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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top