3
Answers

What will be the output for the following program

Ritendra Mall

Ritendra Mall

4y
702
1
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)