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

Name an advantage of linked list over array?

11 Answers   IBM, Infosys,


Why we use classes in oop?

0 Answers  


How is data security provided in Object Oriented languages? ?

5 Answers  


What is a class in oop?

0 Answers  


what is diff between .net 1.1 and .net 2.0

4 Answers  






What is a friend function & its advantage?

1 Answers   MIT,


What are main features of oop?

0 Answers  


Write a program to find out the number of palindromes in a sentence.

1 Answers   TCS,


sir plz send me a set of questions that been frequently held in written examination during campus selection.

0 Answers   TCS,


what is the difference b/w abstract and interface?

2 Answers   Merrill Lynch, Schneider, Scio Healthcare,


Program to check whether a word is in all capital letters

1 Answers  


What is virtual destructor? Why?

3 Answers   Agile Software, College School Exams Tests, CSC,


Categories