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

Why is static class not inherited?

0 Answers  


Whats oop mean?

0 Answers  


What is overloading and its types?

0 Answers  


how to get the oracle certification? send me the answer

0 Answers   Oracle,


What are constructors in oop?

0 Answers  






inheritence with example

1 Answers  


How many types of access specifier in c# and vb.net?

1 Answers   Infosys,


what is difference between objects and function

1 Answers  


What is Object and Class? What are the differences between them?

5 Answers  


any one please tell me the purpose of operator overloading

0 Answers   Amazon,


Can you name some types of inheritance?

0 Answers   Motorola,


What is an advantage of polymorphism?

0 Answers  


Categories