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 |
what i oops concept, how many languages supports oops concept?
what is the difference between class and object?
what is the main difference between sizeof() operator in c and c++
What is OOPS and How it is different from Procedural Programming ?
23 Answers HP, Infosys, Thyrocare,
what is a class
which is platform independent device used in computers
What is difference between new and malloc?
what is graphics
What is object and class in oops?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
We have a scale and 7 balls. 1 ball is heavier than all the rest. How to determine the heaviest ball with only 3 possible weighing attempts?
what is the difference between virtual function and destoctor?