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 java uses class level type casting ?
When is the arraystoreexception thrown?
Why should I use abstract class?
Why do we need data serialization?
Explain public static void main(string args[]) in java.
How many types of the indexof method are there for strings?
What is the difference between Array and Hash Table?
What is the purpose of void class?
What is module in project?
Can we make constructors static?
Can a abstract class be defined without any abstract methods?
Why do we override tostring method in java?
What is the main use of generics in java?
What type of variable is gender?
What are instance variables?