Hi Friends..
can any one provide the real time example for
methodoverloading and methodoverriding .........
Answer Posted / aravind
Example Method:
public void method(int a)
{
....;
....;
}
Method Overloading:
class
{
method(140,1,10,250);
}
Method Overriding:
re implement same method in a class with same or additional
attributes.
method()
{
...;
}
| Is This Answer Correct ? | 0 Yes | 8 No |
Post New Answer View All Answers
What is the meaning of immutable regarding string?
What is console based application in java?
Explain wrapper classes in java?
How to check if linked list contains loop in java?
What is the significance of java packages?
What is the use of conditional statement?
What is polymorphism and what are the types of it?
Differece between class and generic class?
Is sizeof a keyword in java programming?
Justify your answer that you can't define a method inside another method in java, if you can then how?
What is string english?
What differences exist between iterator and listiterator?
Explain about collection interface in java?
How can we make a class singleton?
can I implement my own start() method? : Java thread