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 |
What is an interface?
Explain what is polymorphism?
Define Initialisation Purpose.
What is difference between static and non-static fields of a class?
What is a subclass?
What is single and multiple inheritance?
What is Abstract method and how different from Virtual Method?
How will you define abstract classes?
Explain about inheritance in oops?
What do you mean by data hiding?
1 Answers akamai, Tavant Technologies, Virtusa,
Comment: C++ "includes" behavior and java "imports"
What are extrinsic and intrinsic connections in object-oriented programming?