Answer Posted / achal
the concept of vitual function comes when inheritance is at
work. If the overriden function is not made virtual in base
class , then pointer of derived class will call the funtion
in base class(instead it should have called the one from
derived class.)
this is why we make the function in base as virtual.
| Is This Answer Correct ? | 37 Yes | 6 No |
Post New Answer View All Answers
What are classes oop?
Why is there no multiple inheritance?
What is debug class?what is trace class? What differences are between them? With examples.
What is methods in oop?
Who invented oop?
What is constructor overloading in oop?
Why do we use class?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What is difference between polymorphism and inheritance?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What are the two different types of polymorphism?
#include
Is this job good for future? can do this job post grduate student?
Why do we need oop?
What is interface in oop?