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 is virtual function?

Answer Posted / vindhyachal kumar gupta

C++ virtual function is a member function of a class, whose
functionality can be over-ridden in its derived classes. The
whole function body can be replaced with a new set of
implementation in the derived class. The concept of c++
virtual functions is different from C++ Function overloading.
C++ Virtual Function - Properties:

C++ virtual function is,

* A member function of a class
* Declared with virtual keyword
* Usually has a different functionality in the derived class
* A function call is resolved at run-time

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why reinterpret cast is considered dangerous?

2393


write a program that takes input in digits and display the result in words from 1 to 1000

2424


Which language is pure oop?

1010


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

4947


Which is not an object oriented programming language?

995


What is polymorphism give a real life example?

1038


What is overriding vs overloading?

1061


What is advantage of inheritance?

1174


What is the main feature of oop?

1151


Why do we use oop?

1101


Is oop better than procedural?

1041


Why interface is used?

1020


What is the significance of classes in oop?

1158


What is inheritance in simple words?

1057


Can abstract class have normal methods?

1050