Answer Posted / mona kawale
when there are two same classes in derived and base class then at the tym of running programm compiler get confuse about which function should b call first so it call derived class function automatically....but if we wrote base class function as virtual function then compiler will not get confuse.....
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is polymorphism programming?
What are the advantages of polymorphism?
What is object and class in oops?
Are polymorphisms mutations?
Why do we use polymorphism in oops?
What is a class oop?
What is the use of oops?
Can we define a class within the interface?
What is the real time example of inheritance?
What is abstraction in oop with example?
What is encapsulation c#?
Why do we use class?
Give two or more real cenario of virtual function and vertual object
#include
What is variable example?