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
How do you achieve polymorphism?
What is overriding in oops?
Is enum a class?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
What does <> mean pseudocode?
What is the purpose of enum?
What is abstraction in oops with example?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
Can you inherit a private class?
What is difference between pop and oop?
What is class encapsulation?
What is the problem with multiple inheritance?
Why is abstraction needed?
What is balance factor?
what are the ways in which a constructors can be called?