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

Write a program which uses functions like strcmp(), strcpy()? etc

1104


What is a volatile variable in c++?

1470


Can you please explain the difference between using macro and inline functions?

1047


Can you please explain the difference between static and dynamic binding of functions?

1033


What are the types of array in c++?

1168


What is the difference between interpreters and compilers?

1193


Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?

1082


What is fflush c++?

1025


When can I use a forward declaration?

1104


What is the full form of c++?

1353


What is auto used for in c++?

1052


How do you decide which integer type to use?

1008


What is a flag in c++?

1062


Write a Program to find the largest of 4 no using macros.

1082


How to allocate memory dynamically for a reference?

1049