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 the ways in which a constructors can be called?
Why is polymorphism important in oop?
Can abstract class have normal methods?
Why multiple inheritance is not possible?
What is abstraction with example?
write a program to find 2^n+1 ?
What is coupling in oop?
What is encapsulation selenium?
What is the point of polymorphism?
What is polymorphism in oop example?
What is the advantage of oop over procedural language?
Why is polymorphism used?
What are the types of abstraction?
What are the components of marker interface?
write a C++ program for booking using constructor and destructor.