Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > difference

Reply
Thread Tools

difference

 
 
i
Guest
Posts: n/a
 
      02-23-2007
What is the difference between polymorphism and overloading?

 
Reply With Quote
 
 
 
 
Chris Roth
Guest
Posts: n/a
 
      02-23-2007
i wrote:
> What is the difference between polymorphism and overloading?
>


Read any good OO book or website.
 
Reply With Quote
 
 
 
 
Mike Wahler
Guest
Posts: n/a
 
      02-23-2007

"i" <> wrote in message
news: ps.com...
> 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


 
Reply With Quote
 
Grizlyk
Guest
Posts: n/a
 
      02-24-2007

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/


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
difference between Wifi repeater and range extender? AdminKen Wireless Networking 4 02-11-2011 04:05 AM
wireless speed difference =?Utf-8?B?dG9t?= Wireless Networking 6 06-02-2005 02:16 AM
Difference between bin and obj directories and difference between project references and dll references jakk ASP .Net 4 03-22-2005 09:23 PM
difference between 802.3b and 802.11b Tony Warburton Wireless Networking 2 11-25-2004 10:27 PM
Difference : WEP open / shared ? Michael van den Berg Wireless Networking 1 08-18-2004 07:36 PM



Advertisments