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

Difference ways of Polymorphism?

3 Answers  


What do you mean by inheritance?

0 Answers   IBS,


What is destructor give example?

0 Answers  


what is the realstic modeling?

1 Answers  


WHAT IS ABSTRUCT DATA TYPE ? PLEASE EXPLAIN IT.

4 Answers   HCL,


what is object slicing?

9 Answers   L&T, Wipro,


How to use CMutex, CSemaphore in VC++ MFC

0 Answers   Persistent, TCS,


What are the data types in oop?

0 Answers  


Can we create object of abstract class?

0 Answers  


What does and I oop mean?

0 Answers  


What are the advantanges of modularity

2 Answers  


c++ is a purely oop concept?

3 Answers   Google, TCS,


Categories