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 |
What are two types of polymorphism?
what is overloading
What is polymorphism give a real life example?
Why is polymorphism used?
What is multiple inheritance?
What are main features of oop?
There are 2 classes defined as below public class A { class B b; } public class B { class A a; } compiler gives error. How to fix it?
Why is oop useful?
tell about copy constructor
what is polymorpsim? what are its types?
what is the application of oops?
what is the main difference between sizeof() operator in c and c++