polymorphism

Discussion in 'C Programming' started by anilpetkar, Jun 20, 2012.

  1. anilpetkar

    anilpetkar

    Joined:
    Jun 20, 2012
    Messages:
    1
    why do we need polymorphism? because if declared function as a virtual, we need to override it in all class and accessing has to be done creating ptr to class and using that pointer we need to access the function of other class. instead of we can also create a object for respective class and access fuction through it.
     
    anilpetkar, Jun 20, 2012
    #1
    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. Kevin Lawrence

    Polymorphism in GridView (ASP.Net 2.0)

    Kevin Lawrence, Feb 16, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    847
    Kevin Lawrence
    Feb 16, 2006
  2. Sony Antony

    Polymorphism in xml ??

    Sony Antony, Aug 26, 2003, in forum: Java
    Replies:
    0
    Views:
    560
    Sony Antony
    Aug 26, 2003
  3. Osaman
    Replies:
    2
    Views:
    447
    John C. Bollinger
    Jan 5, 2004
  4. Tony Morris

    polymorphism

    Tony Morris, Mar 7, 2004, in forum: Java
    Replies:
    1
    Views:
    727
    sonali
    Mar 7, 2004
  5. Krivenok Dmitry
    Replies:
    13
    Views:
    1,443
    Axter
    Jun 1, 2006
Loading...

Share This Page