difference

Discussion in 'C++' started by i, Feb 23, 2007.

  1. i

    i Guest

    What is the difference between polymorphism and overloading?
     
    i, Feb 23, 2007
    #1
    1. Advertisements

  2. i

    Chris Roth Guest

    i wrote:
    > What is the difference between polymorphism and overloading?
    >


    Read any good OO book or website.
     
    Chris Roth, Feb 23, 2007
    #2
    1. Advertisements

  3. i

    Mike Wahler Guest

    "i" <> wrote in message
    news:...
    > 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
     
    Mike Wahler, Feb 23, 2007
    #3
  4. i

    Grizlyk Guest

    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/
     
    Grizlyk, Feb 24, 2007
    #4
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Kamoski
    Replies:
    3
    Views:
    16,489
    Jay B. Harlow [MVP - Outlook]
    Aug 9, 2003
  2. Gopal Prabhakaran

    Difference between HtmlControls and server controls

    Gopal Prabhakaran, Jan 26, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,571
    Rainer Maurer [MS]
    Jan 26, 2004
  3. hclarius
    Replies:
    1
    Views:
    2,500
    Ed Kaim [MSFT]
    Jul 4, 2004
  4. walala
    Replies:
    3
    Views:
    1,166
    Egbert Molenkamp
    Sep 4, 2003
  5. jakk
    Replies:
    4
    Views:
    13,881
  6. Peter Otten
    Replies:
    1
    Views:
    211
    Mark Lawrence
    Feb 25, 2014
  7. Tim Chase
    Replies:
    5
    Views:
    138
    Tim Chase
    Feb 26, 2014
  8. MRAB
    Replies:
    1
    Views:
    117
    Steven D'Aprano
    Feb 26, 2014
Loading...