If we have passed three parameters into one method but i will call and pass Only two i wont call 3rd is it possible
public class Methodoveloading
{
public int add(int a, int b) //two int type Parameters method
{
return a + b;
}
public int add(int a, int b,int c) //three int type Parameters with same method same as above
{
return a + b+c;
}
public float add(float a, float b,float c,float d) //four float type Parameters with same method same as above two method
{
return a + b+c+d;
}
}