Answer Posted / 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 View All Answers
What is difference between inheritance and polymorphism?
can we make game by using c
is there any choice in opting subjects like 4 out of 7
what type of question are asked in thoughtworks pair programming round ?
write a program to find 2^n+1 ?
How to call a non virtual function in the derived class by using base class pointer
Can you inherit a private class?
What is overloading in oops?
What are the important components of cohesion?
What are the features of oop?
What is overloading in oop?
what are the ways in which a constructors can be called?
What is destructor give example?
Why do we use polymorphism?
What is coupling in oops?