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

Generally, in all C++ programs, texts are in white colour. Can we change the colour of the text(either input or output or both)? If so, help me out.

1 Answers  


What is data binding?

4 Answers   Ittiam Systems,


why freind function takes more parameter than normal member function in c++?

1 Answers   IBM,


how to swap the variables without using temp and operators

1 Answers  


why we are declare the function in the abstract class even though we are declaring it in Derived class?

1 Answers   TCS,






what is mean by design pattern

4 Answers  


Program to check whether a word starts with a capital letter or not.

1 Answers   Infosys,


what is ltti

1 Answers   Unisys,


Which is not an object oriented programming language?

0 Answers  


What will happen when the following code is run: int x; while(x<100) { cout<<x; x++; } 1) The computer will output "0123...99" 2) The computer will output "0123...100" 3) The output is undefined

7 Answers  


Why is oop useful?

0 Answers  


What does enum stand for?

0 Answers  


Categories