what is virtual function?
Answer Posted / manab
When derived class overrides the base class method by
redefining the same function, then if client wants to
access redefined the method from derived class through a
pointer from base class object, then you must define this
function in base class as virtual function.
| Is This Answer Correct ? | 68 Yes | 7 No |
Post New Answer View All Answers
Why is there no multiple inheritance?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What is abstraction in oop with example?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What are main features of oop?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What is debug class?what is trace class? What differences are between them? With examples.
which feature are not hold visual basic of oop?
What is polymorphism and its types?
What is the fundamental idea of oop?
What is class in oop with example?
What type of loop is a for loop?
What is abstraction oop?
What is object and class in oops?
What is the main feature of oop?