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 ambiguity in inheritance?
How do you explain polymorphism?
Why do we need oop?
What is the diamond problem in inheritance?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is polymorphism and why is it important?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What is the benefit of oop?
is there any choice in opting subjects like 4 out of 7
What do you mean by Encapsulation?
What is encapsulation and abstraction? How are they implemented in C++?
What is polymorphism oop?
What is a function in oop?
What is encapsulation with example?