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

which feature are not hold visual basic of oop?

0 Answers   Ignou,


What is polymorphism in oops with example?

0 Answers  


what type of questions

0 Answers   IBM,


any one please tell me the purpose of operator overloading

0 Answers   Amazon,


What is abstraction in oops?

0 Answers  






why in java first invoke public static void main(String args[]) method????Why not public static void method1(String args[])??

1 Answers  


What is Inheritance, Multiple Inheritance, Shared and Repeatable Inheritance?

4 Answers   L&T, Accenture,


How Do you Code Composition and Aggregation in C++ ?

3 Answers   IBM, NET,


I am developing a payroll system mini project.I used file concept in program for reading and writing.When the program is reloading into the memory that is if i execute next time the file was cleaned and adding data from the starting this is my problem.I want to strore the previous data and if i want to add any record that should be next of previous data.Please help me.

0 Answers  


What do you mean by multiple inheritance and multilevel inheritance? Differentiate between them.

2 Answers  


What is Hashing and how is it done? Pictorial form?

2 Answers   emc2, Wipro,


whats the difference between c and c++

7 Answers   Syntel,






Categories