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 valid keyword in java?
How can we achieve thread safety in java?
What is object class in java?
Can a constructor be private and how are this() and super() method used with constructor?
Why do we need singleton?
What is the use of :: in java?
Is upper case in java?
What are latest features introduced with java 8?
What are the special characters?
What do you mean by multithreaded program?
What is the difference between math floor and math round?
Is minecraft java edition free?
What is main string [] args?
How do you write methodology?
What is singleton class in ruby?