how call Derived class function in base class

Discussion in 'C Programming' started by prabhakar732, Dec 19, 2008.

  1. prabhakar732

    prabhakar732

    Joined:
    Dec 17, 2008
    Messages:
    3
    Likes Received:
    0
    Class A
    {
    func()
    {

    func1() ; // i want call derived class Function in base class how can u do it.
    }

    };
    Class B: Public A
    {

    func1()
    {
    }
    }
     
    prabhakar732, Dec 19, 2008
    #1
    1. Advertisements

  2. prabhakar732

    prabhakar732

    Joined:
    Dec 17, 2008
    Messages:
    3
    Likes Received:
    0
    plz Give ans any body knows its very urgent
     
    prabhakar732, Dec 19, 2008
    #2
    1. Advertisements

  3. prabhakar732

    prabhakar732

    Joined:
    Dec 17, 2008
    Messages:
    3
    Likes Received:
    0
    Class A
    {
    func()
    {

    func1() ; // i want call derived class Function in base class how can u do it.
    }

    };
    Class B: Public A
    {

    func1()
    {
    }
    }
     
    prabhakar732, Dec 22, 2008
    #3
    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. Taran
    Replies:
    6
    Views:
    624
    Default User
    Apr 20, 2006
  2. developereo@hotmail.com
    Replies:
    1
    Views:
    644
    myork
    May 23, 2007
  3. developereo@hotmail.com
    Replies:
    1
    Views:
    549
    Victor Bazarov
    May 23, 2007
  4. Javier
    Replies:
    4
    Views:
    585
    James Kanze
    Jun 8, 2007
  5. Rahul
    Replies:
    16
    Views:
    1,532
    terminator
    Nov 7, 2007
  6. pastbin@gmail.com
    Replies:
    2
    Views:
    950
    pastbin@gmail.com
    Feb 7, 2008
  7. George2
    Replies:
    0
    Views:
    490
    George2
    Mar 17, 2008
  8. Lionel B
    Replies:
    8
    Views:
    519
    James Kanze
    Feb 5, 2009
Loading...