What is Overriding and how can it be used?
Answer Posted / pranab dutta
If a class defines a method using the same name, return
type, and arguments in its super class, then it is called
Overriding. Methods are overridden to make them more
public. The method in the class overrides the method in the
super class.
When the method is invoked for an object of the class, it
is the new definition of the method that is called, and not
the method definition from super class.
| Is This Answer Correct ? | 46 Yes | 6 No |
Post New Answer View All Answers
What is operator overloading. Is it is supported in java?
What is fundamental datatype?
Will minecraft java be discontinued?
Name few java 8 annotations ?
How do you clear a method in java?
What is an example of a constant variable?
What is consumer in java?
How many bytes are there?
Differentiate between vector and array list.
What is application tier?
Explain the Propertie sof class?
What is the epoch date?
What is string pool?
How do you replace a string in java?
Why does my function print none?