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 purpose of the return statement?
What is multi level inheritance in java?
What is null mean in java?
What are predefined functions?
What is the java idl system?
What is the benefit of lambda expressions?
Explain the transient field modifier?
How do you create a sop?
How hashmap increases its size in java?
Is .net better than java?
Explain about object oriented programming and its features?
What is the difference between processes and threads?
Can we declare a constructor as final?
enlist some features of jdk.
What initialize variables?