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 is the outcome of the line of code "cout<<abs(- 16.5);"? 1) 16 2) 17 3) 16.5
Can we call a base class method without creating instance?
What is a scope resolution operator?
What is property in oops?
what is the difference between class to class type conversion and copy constructor ?
How can i write a code in c# to take a number from the user and then find all the prime numbers till the number entered by the user.
why we are declare the function in the abstract class even though we are declaring it in Derived class?
Program to print 0 to 9 in cross order
Why is abstraction used?
What is polymorphism explain its types?
what are the different types of qualifier in java?
Why is there no multiple inheritance?