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 are main features of oop?

0 Answers  


What is constructor in oop?

0 Answers  


what do you mean by static member variable?

2 Answers  


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

0 Answers  


write a c++ code to overload + and - for a stack class such that + provides push and - provides pop operation

1 Answers   College School Exams Tests, HCL, IBM, TCS,






create a c++ program that will ask 10 numbers and display their sum using array.

1 Answers  


can you give real time example for polymarphism

5 Answers   TCS,


Explain virtual inheritance?

0 Answers  


how to write a java program for an output ****0 ***01 **012 *0123 01234

1 Answers  


3. Differentiate verification and validation.

1 Answers  


Why many objects can working together? How objects working togetherM I want to see example code.

2 Answers  


How do you make derived class as an abstract class?

1 Answers   Convergys, TCS,


Categories