why overriding?
Answers were Sorted based on User's Feedback
Answer / ejaz
In two classes(having parent child/common interface
relation) methods with same signature and execution of
method decided at run time based on object type.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / vic
To elaborate on Ejaz's answer, the run time determination
will only happen if the functions being called were declared
as being virtual.
If they weren't, then the function to be called will be
determined at compile time according to the object type.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is following functions are said to be overloaded? int add(int a,int b) char *add(int a,int b)
What is difference between #define and const?
explain dynamic binding by drowing
What are virtual functions?
What is polymorphism what is it for and how is it used?
What is the difference between Home and $Home?
What does enum stand for?
what is namespace? what are the uses of namespace?
What are the 3 pillars of oop?
what is the realstic modeling?
Why it is called runtime polymorphism?
what type of questions