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
what is the constructor and how many types of constructors are used in java?
How is hashset defined in java?
Is heap stored in ram?
How to pass arraylist to stored procedure in java?
What is the purpose of skeleton and stub?
How to reverse string in java?
What is the integer of 16?
Why are getters and setters used?
how do I create a runnable with inheritance? : Java thread
How does arrays sort work in java?
What are the different tags provided in jstl?
Why unicode is important?
What happens if we override private method?
Is .net better than java?
What is use of set in java?