What is virtual Function.



What is virtual Function...

Answer / poonam

Virtual function is a function that uses keyword "virtual"
with the datatype of the function. When the base class as
well as the derived class contains a function both having
the same name, just to resolve ambiguity and copy of the
same data again and again we use the keyword "virtual"
preeceeding it. It is used to achieve poymorphism.

Is This Answer Correct ?    7 Yes 0 No

Post New Answer

More OOPS Interview Questions

what is the difference between class and structure in C++?

9 Answers   Aspire, IBS, TCS,


what is difference between objects and function

3 Answers  


what is the use of classes in c++;

2 Answers   HCL,


write knight tour problem which is present in datastructure

0 Answers  


When is it necessary to use member-wise initialization list in C++?

2 Answers   Adobe,






How can we use the preprocessor #if and #elseif.

2 Answers  


how do you handle yourself when you feel the wald is aganist you

2 Answers  


What is a template?

7 Answers  


Have you ever interfaced with a database?

2 Answers   IBM,


How do you achieve polymorphism?

0 Answers  


what is the difference between <stdio.h>and "stdio.h"?

5 Answers  


which are the 4 members functions in c++ objects that can either be declared explicitly by programmer or implementation if nt available.

4 Answers  


Categories