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 correct syntax for inheritance? 1) class aclass : public superclass 2) class aclass inherit superclass 3) class aclass <-superclass
Write pseudo code for push in a stack?
What is virtual class and friend class?
why freind function takes more parameter than normal member function in c++?
In multiple inheritance , to create sub class object , is there need to create objects for its superclasses??? in java and c++ both. Actually i have some information that is , all available members from its superclasses , memory created in subclass obj , so no need to create object for its superclasses...??? Thanks in Advance
What is encapsulation oop?
What are objects in oop?
Precompilation ?
to remove the repeated numbers from the given . i.e.., if the input is 12233 output should of 123
Write an operator overloading program to Overload ‘>’ operator so as to find greater among two instances of the class.
What is static in oop?
What is oops with example?