1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Polymorphism

Discussion in 'C++' started by gusaniinfotech, Sep 15, 2014.

  1. gusaniinfotech

    gusaniinfotech New Member

    Joined:
    Sep 9, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    Please make me clear about "What is Polymorphism in C++?" with simple words...and terms...!! please..!!
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,306
    Likes Received:
    369
    Trophy Points:
    83
  3. alia123

    alia123 New Member

    Joined:
    Jan 8, 2016
    Messages:
    65
    Likes Received:
    4
    Trophy Points:
    0
  4. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    OP: do you understand or do you need further clarification?
     
  5. Claire_Anderson

    Claire_Anderson Member

    Joined:
    Aug 9, 2016
    Messages:
    41
    Likes Received:
    5
    Trophy Points:
    8
    Gender:
    Male
    Location:
    UK
    Home Page:
    Polymorphism is a Greek work, it means having multiple forms. Polymorphism is an pattern in Object Oriented Programming in which we the classes share same interface with different functionality.

    A real world example for polymorphic is a button. Everyone knows how to use a button: you simply apply pressure to it. What a button does depends on the context it is used and what it is connected to. When some one tells you to press the button You already have all the information needed to perform the task.
     

Share This Page