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 the virtual function overhead, and what is it used
for ? i hope i can get and appropriate answers, thanks a lot....

Answer Posted / sanish joseph

I thnk virtual fns r declared with 'virtual' keyword
nd it must be redifend in the derivd classes.
wen mor dan one classes derivs a methd in the base class,
dat method can be writn with virtual to avoid ambiguity.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

2276


What are the types of abstraction?

1055


What is the fundamental idea of oop?

1122


What are the benefits of oop?

1231


What polymorphism means?

1052


What are two types of polymorphism?

1057


What is overriding in oop?

1028


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

2232


Why interface is used?

1004


What is difference between polymorphism and inheritance?

1056


How to call a non virtual function in the derived class by using base class pointer

6514


What is the use of oops?

1037


What does and I oop mean in text?

1195


What is abstract class in oop?

991


How is class defined?

1118