What is method Overloading in the perspective of OOPS?

Answer Posted / md.meraz uddin

The system which have diffrent method in same class or same signature i.e inheritance , polymorphism etc that is called overlaoding.
For example:-
class A
{
public void add(int a, int b);
System.out.println(a+b);
}
public void add(int c,int d,int e);
{
System.out.println(c+d+e);
}

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is parsing in java?

733


What are the various access specifiers for java classes?

816


How do you sort an array in java?

796


Explain about oops concepts.

892


What is data type example?

768


What is method in research paper?

802


What is incompatible types in java?

817


What is a default method?

777


What do you understand by final value?

814


Explain the concept of proper inheritance?

849


Why put method is used?

787


How do I get a substring?

757


Explain about fail fast iterators in java?

819


Explain what is encapsulation?

841


What is the difference between array list and vector in java?

752