what is overloading and overriding with example?
Answer Posted / rajesh r
OVERLOADING MEANS SAME METHOD NAME WITH DIFFERENT
PARAMETERS.
BOTH SHOULD BE DEFINED IN SAME CLASS ITSELF.
OVERRIDING MEANS SAME METHOD NAME WITH SAME PARAMETERS.THIS
CAN ASSOCIATED IN A CLASS AND ITS SUBCLASS.(VIRTUAL,
OVERRIDE)
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Why is string buffer better than string ?
Why do you canvas?
What are features of java?
List implementations of list interface?
Which is better stringbuffer or stringbuilder?
Which are the two subclasses under exception class?
What are the difference between string, string builder, and string buffer in java?
What is the purpose of format function?
Explain restrictions on using enum?
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
Is a class an object?
Can we modify the throws clause of the superclass method while overriding it in the subclass?
Can a class have multiple constructors?
What is a list in java?
What is a predicate method?