why overriding?

Answers were Sorted based on User's Feedback

why overriding?..

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

why overriding?..

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

why overriding?..

Answer / kamal

same function name and same argument list

Is This Answer Correct ?    5 Yes 6 No

Post New Answer

More OOPS Interview Questions

what is the technical or oop name of object?

1 Answers  

What is the renewal class?

0 Answers   IBM, Ebix,

how to create thread in java?

17 Answers   Wipro, Infosys, IBM,

OOP'S advantages of inheritance include:

1 Answers   Infosys,

what is new operator in c++

1 Answers  

What is operator overloading? Give Example

11 Answers   TCS, IBM, CTS,

what is function overloading..?

4 Answers  

Write on signed and unsigned integers and give three (3) examples each

1 Answers  

tel me oops defination in single line

2 Answers  

There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?

2 Answers  

What is the difference between const int *ptr and int const *ptr???

2 Answers  

write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.

4 Answers