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 the public field modifier?
What do you mean by collectors in java 8?
What does i ++ mean in Java?
How is abstraction implemented in java ?
How do generics work in java?
What language is java written?
What is matcher in java?
Explain about data types?
Which is better ascii or unicode?
What are the two environment variables that must be set in order to run any java programs?
Difference between Preemptive scheduling vs. Time slicing?
What is java used for on a computer?
What are different types of inner classes ?
Explain some best practices you would apply while using collection in java?
Can static methods be inherited?