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 SPL in c++.
what are the ways in which a constructors can be called?
any one please tell me the purpose of operator overloading
What is coupling in oops?
why to use template classes in c++?
what is the definition of incapsulation
What is difference between abstraction and encapsulation?
1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how do you make a class member visible aouside its class? 4.what is the default visibility of a class data member? 5.what are the advantages of oop over the structured programing?
Why do we use class?
What do you mean by inheritance?
What are main features of oop?
What is the difference between class and object?