Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are Virtual Functions? How to implement virtual
functions in "C" ?

Answer Posted / rama

When we use the same function name in both the base and the
derived classes, the function in base class is declared as virtual...we must access virtual function through the use of a pointer declared as a pointer to the base class..


In other words, virtual function is defined in the base class,it need not be necessarily redefined in the derived class. In such cases,the respective calls will invoke the base class function.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is purpose of abstract class?

1074


Write my own zero-argument manipulator that should work same as hex?

1053


Is java as fast as c++?

1105


What is the prototype of printf function?

1187


What do you mean by function and operator overloading in c++?

1054


What are containers in c++?

992


What does n mean in c++?

1170


Define 'std'.

1178


Why is c++ is better than c?

981


What is difference between c++ 11 and c++ 14?

1103


What is vector processing?

1149


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

2574


What is a template in c++?

1858


What character terminates all character array strings a) b) . c) END

1281


How will you call C functions from C ++ and vice-versa?

1145