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
What is balance factor?
How long to learn object oriented programming?
What are the data types in oop?
#include
What is the difference between procedural programming and oops?
Which is not an object oriented programming language?
Can we create object of abstract class?
What is overloading and its types?
#include
What is oops concept with example?
What are the benefits of oop?
How do you achieve polymorphism?
Why do we use class?
Can you inherit a private class?
What is class encapsulation?