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 application system?
Can private class be inherited in java?
If a method is declared as protected, where may the method be accessed in java programming?
How do you check if two given string are anagrams?
What are the different types of inner classes?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
What are loops in java? What are three types of loops?
What are the five major types of reference sources?
What is the current version of java?
What are the advantages of exception handling?
What is the difference between the font and fontmetrics classes in java programming?
What are three ways in which a thread can enter the waiting state in java programming?
What is void class in java?
Difference between ‘>>’ and ‘>>>’ operators in java?
What are use cases?