What is Overriding and how can it be used?
Answer Posted / sajith
If class define method using same name,parameter,return
type,argument in its superclass then it is called overriding.
sub class should be override parentclass
| Is This Answer Correct ? | 9 Yes | 5 No |
Post New Answer View All Answers
I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?
What is set in java?
What do you mean by object?
Why char array is preferred over string for storing password?
How many bits is a double?
why an outer class cannot be declared as private?
Is null function in java?
How can we make a class virtual?
What are inbuilt functions in java?
Tell me the latest versions in java related areas?
Why we use methods in java?
Can we declare the main method of our class as private?
What is contract between hashcode and equal method?
How do you sort a set in java?
What are the different data types in java?