Small doubt in c# pls clarify me if any one

If we have passed three parameters into one method but i will call and pass Only two i wont call 3rd is it possible

Your Answer

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;    
    
    }    
  }    

C Sharp Dot Net

Didn't get the answer.
Contact people of Talent-C Sharp Dot Net directly by clicking here