Answer Posted / bijal
The virtual function can be allowed in base classes only.
The functions markd Virtual will only be overridable in
derieved classes.
If i m having a function in base class that shud come in
derieved class but i want it to have different behaviour.
This can only be acheived only if base class function is
virtual function.
| Is This Answer Correct ? | 23 Yes | 8 No |
Post New Answer View All Answers
What is the use of oops?
What is polymorphism explain?
What is class and object with example?
How to improve object oriented design skills?
What is the significance of classes in oop?
What is abstract class in oops?
Can a destructor be called directly?
Why is encapsulation used?
What is abstraction in oop?
Why do we use oop?
What is encapsulation process?
Can private class be inherited?
What is object-oriented programming? Webopedia definition
What is a superclass in oop?
Why is abstraction needed?