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 the purpose of the enableevents() method in java programming?

810


How is abstraction implemented in java ?

729


What is a key in java?

724


What are internal and external variables?

730


Why we override equals() method?

782


Which is better arraylist or vector?

792


Can we create an object of static class in java?

803


What is the function of character?

778


Why hashcode is used in java?

689


Can a constructor have different name than a class name in java?

833


What are bind parameters?

765


Where local and global variables are stored?

792


What are the different ways of creating thread?

788


How do weakhashmap works?

849


What is import java util arraylist?

881