Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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 the advantages of inheritance?

26 Answers   IBS, TCS,

ambiguity regulation of multiple inheritance with example.

1 Answers  

what is opps?why it is use in programming language?

2 Answers   Wipro,

What is object in oop?

0 Answers  

Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

0 Answers  

Why is destructor used?

0 Answers  

What is the example of polymorphism?

0 Answers  

can we create and enter the data & hide files using programmes ?

2 Answers   Wipro,

When a private constructer is being inherited from one class to another class and when the object is instantiated is the space reserved for this private variable in the memory??

13 Answers   HCL, Honeywell,

c++ provides classes...and classes do what we want but why then strcut are used...if we say data hiding... it is also provided by c++ in structs then why to prefer clasess

1 Answers   HCL, TCS,

What is overloading in oop?

0 Answers  

What is difference between inheritance and polymorphism?

0 Answers