What is method overriding?



What is method overriding?..

Answer / Prabhakar Awasthi

'Method Overriding' is a feature in OOP that allows a subclass to provide its own implementation of a method that is already present in the superclass. When a method with the same signature exists both in the superclass and the subclass, the method from the subclass will be executed when called on an object of the subclass.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOAD Interview Questions

What is an interface?

1 Answers  


Explain what is polymorphism?

1 Answers  


Define Initialisation Purpose.

1 Answers   Atos, Atos Origin,


What is difference between static and non-static fields of a class?

1 Answers  


What is a subclass?

1 Answers  


What is single and multiple inheritance?

1 Answers  


What is Abstract method and how different from Virtual Method?

1 Answers  


How will you define abstract classes?

1 Answers   QuestPond,


Explain about inheritance in oops?

1 Answers  


What do you mean by data hiding?

1 Answers   akamai, Tavant Technologies, Virtusa,


Comment: C++ "includes" behavior and java "imports"

1 Answers   Protech,


What are extrinsic and intrinsic connections in object-oriented programming?

1 Answers  


Categories