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. Advertising

  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. Advertising

  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. Advertising

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. jakk
    Replies:
    4
    Views:
    11,983
  2. Nick Timkovich
    Replies:
    0
    Views:
    57
    Nick Timkovich
    Feb 25, 2014
  3. Skip Montanaro
    Replies:
    0
    Views:
    54
    Skip Montanaro
    Feb 25, 2014
  4. Peter Otten
    Replies:
    1
    Views:
    57
    Mark Lawrence
    Feb 25, 2014
  5. Peter Otten
    Replies:
    0
    Views:
    53
    Peter Otten
    Feb 25, 2014
Loading...

Share This Page