What is method Overloading in the perspective of OOPS?
Answer Posted / kabita
In same class more than two methods having same name but
different signatures are called method
overloading .signatures are
no of parameters,datatypes of parameters,sequence of
parameters.returntype may same or not.
ex:public int add(int a,int b)
{
S.o.p(a+b);
}
public int add(int a,int b,intc)
{
S.o.p(a+b+c);
}
public double add(double d,double e)
{
S.o.p(d+e);
}
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is general methodology?
How to reverse string in java?
What is entry in java?
Why string objects are immutable in java?
Explain how can you debug the Java code?
Explain the difference between static and dynamic binding in java?
What is static and final keyword in java?
What is time complexity java?
Does garbage collection occur in permanent generation space in jvm?
What does business logic mean?
Garbage collection in java?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
Where are local variables stored?
What is tcp ip in java?
What is comparable and comparator interface? List their differences