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
class type to basic type conversion
Which type does string inherit from?
Can destructor be overloaded?
Give two or more real cenario of virtual function and vertual object
What are the benefits of polymorphism?
#include
What is meant by multiple inheritance?
Why do while loop is used?
What is the difference between a mixin and inheritance?
Why is polymorphism important in oop?
What is abstraction encapsulation?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
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 main method override?
What is a class in oop?