Exforsys
+ Reply to Thread
Results 1 to 6 of 6

what is virtual function?

This is a discussion on what is virtual function? within the C and C++ forums, part of the Programming Talk category; explain someoe...........................................................

  1. #1
    shrikant telkar is offline Junior Member Array
    Join Date
    Mar 2007
    Answers
    5

    Wink what is virtual function?

    explain someoe........................................................


  2. #2
    zsk_00 is offline Member Array
    Join Date
    May 2006
    Answers
    37
    functions that can by over-ridden in the derived class and binding happens at the run time.


  3. #3
    Sandhya.Kishannag is offline Member Array
    Join Date
    Feb 2012
    Answers
    66
    Virtual function is a member function of a class, whose functionality can be over-ridden in its derived classes. The whole function body can be replaced with a new set of implementation in the derived class.


  4. #4
    jonathan2340 is offline Leather Fashion Array
    Join Date
    Mar 2012
    Answers
    1
    I have little bit knowledge about c. there are loops in c language. i have no idea about virtual function.


  5. #5
    paddysmith is offline Junior Member Array
    Join Date
    Mar 2012
    Answers
    2
    virtual function can be used to override the propertis of a function.it is normaly used in inheritance. it is part of polymerphism.


  6. #6
    rp9rocks is offline Junior Member Array
    Join Date
    Mar 2012
    Answers
    1
    virtual function can be simply illustrated by taking an example of college principle!!!!!!!!!!!!!!!!!
    he does various functions or completes many tasks according to his scope(here scope can be as lecturer,as an admin and as principle itself).
    virtual function is similar kind of the function which performs different tasks at different place.
    virtual is special type of keyword.


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...