what is virtual function?
Answer Posted / laxmikant
A virtual function is a function which is precedded by the
key word derived is declared in the base class.It is
normally used to achieve run time polymerphism.That means
we can override the base class function in the derived
class.We can invoke the virtual function through the base
class pointer depending upon the contents to which the base
class pointer points to.
Generally the implementation of virtual
class was found in inheritance where the base class
function is override in the derived class.
| Is This Answer Correct ? | 23 Yes | 6 No |
Post New Answer View All Answers
Which is not an object oriented programming language?
What is abstraction in oops?
What is the difference between abstraction and polymorphism?
What language is oop?
what's the basic's in dot net
What is the difference between encapsulation and polymorphism?
Advantage and disadvantage of routing in telecom sector
How oops is better than procedural?
Why we use classes in oop?
What is polymorphism in oop example?
Give two or more real cenario of virtual function and vertual object
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
What is oops in simple words?
What is coupling in oop?
what are the different types of qualifier in java?