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 a static member?

1001


write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

2648


What is virtual destructor? What is its use?

1004


What is cout flush?

959


What new()is different from malloc()?

1045


What is an iterator?

1140


What is encapsulation in c++ with example?

953


Define copy constructor.

1057


Define the process of handling in case of destructor failure?

994


Differentiate between the manipulator and setf( ) function?

1097


What is an accessor in c++?

1021


If you want to share several functions or variables in several files maitaining the consistency how would you share it?

929


What happens when the extern "c" char func (char*,waste) executes?

1021


How can I improve my c++ skills?

1067


What is the meaning of c++?

967