Ritendra Mall

Ritendra Mall

  • NA
  • 316
  • 31.1k

What will be the output for the following program

Mar 10 2020 12:27 AM
public class Calculator
{
public int Sum(int x, int y)
{
return x + y;
}
}
public class Client1
{
public void Operation()
{
int a = 4;
int b = 5;
//Find Sum of a and b and formula of sum will be x+y for client1
}
}
public class Client2
{
public void Operation()
{
int a = 4;
int b = 5;
//Find Sum of a and b and formula of sum will be 3x+4y+7 for client2
}
}
Can anyone tell me how i can acheive this in c# ? 
 
Thank you  

Answers (3)