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 and what is its use?

Answer Posted / hrpynux@gmail.com

A virtual function is a member function that you expect to be redefined in derived classes. When you refer to a derived class object using a pointer or a reference to the base class, you can call a virtual function for that object and execute the derived class's version of the function.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the array and initializing arrays in c++?

1074


Why is "using namespace std;" considered bad practice?

1143


what are function pointers?

1138


Is java made in c++?

1117


What is the benefit of c++?

1202


How do you find out if a linked-list has an end?

1177


What is meant by iomanip in c++?

1290


Can you overload the operator+ for short integers?

1086


What is the difference between set and map in c++?

1178


What programming language should I learn first?

1149


Define upcasting.

1093


What are the types of container classes?

1226


What is static in c++?

1097


What is the difference between the parameter to a template and the parameter to a function?

1163


Name the implicit member functions of a class.

1120