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 |
what is the difference between class and structure in C++?
what is difference between objects and function
what is the use of classes in c++;
write knight tour problem which is present in datastructure
When is it necessary to use member-wise initialization list in C++?
How can we use the preprocessor #if and #elseif.
how do you handle yourself when you feel the wald is aganist you
What is a template?
Have you ever interfaced with a database?
How do you achieve polymorphism?
what is the difference between <stdio.h>and "stdio.h"?
which are the 4 members functions in c++ objects that can either be declared explicitly by programmer or implementation if nt available.