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...

Explain virtual functions in C++.

Answer Posted / hr@tgksolutions.com

• A virtual function is a member function that can be overridden in derived classes. Declared with the virtual keyword in the base class, enabling runtime polymorphism.

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 try block?

1030


How const int *ourpointer differs from int const *ourpointer?

1067


Can constructor be static in c++?

1050


How many namespaces are there in c++?

1010


Is c++ vector dynamic?

1012


What are the two types of comments?

941


Give an example of run-time polymorphism/virtual functions.

949


Where must the declaration of a friend function appear?

907


What is iostream in c++ used for?

973


What is searching? Explain linear and binary search.

946


I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.

2736


What is the full form nasa?

1031


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

972


What is a manipulative person?

944


What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

1049