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 are the two ways in which thread can be created?
What is the meaning of variable in research?
How does linkedlist work in java?
How to convert string to char and vice versa?
Describe 2 different ways to concatenate two strings.
What is meant by data hiding in java?
Explain access modifiers in java.
What is object in java?
What is the purpose of void?
What is the purpose of the runtime class in java programming?
What is sleep method?
Explain about data types?
Can we override protected method in java?
What is the difference between compare and compareto in java?
What is difference between classpath and path variables in java?