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
Can we split string with in java?
what is the purpose of using rmisecuritymanager in rmi?
When is the finalize() called?
how to deploy apache tomcat server to weblogic server in java
Can you explain inner class.
Is string is a data type?
What is temp in java?
Difference between string, string builder, and string buffer?
How do you initialize an arraylist in java?
What is a line separator in java?
How big is a gigabyte?
What is return keyword in java?
What is an example of declaration?
Can a class extend more than one class?
What is mnemonic in assembly language?