1 Reply
public class TEst {
public int calc(int x, int y)
{
return x + y;
}
public void calc(int x, int y, out int area) { area = x + y; }
}
int res = new TEst().calc(10, 20);
int res2;
new TEst().calc(10, 20,out res2);
Console.WriteLine(res + res2);
public class TEst {
public int calc(int x, int y)
{
return x + y;
}
public void calc(int x, int y, out int area) { area = x + y; }
}
int res = new TEst().calc(10, 20);
int res2;
new TEst().calc(10, 20,out res2);
Console.WriteLine(res + res2);
public class TEst
{
public int calc(int x, int y)
{
return x + y;
}
public void calc(int x, int y, out int area) { area = x + y; }
}
class Program
{
static void Main()
{
int res = new TEst().calc(10, 20);
int res2;
new TEst().calc(10, 20, out res2);
Console.WriteLine(res + res2);
}
}
public class TEst
{
public int calc(int x, int y)
{
return x + y;
}
public void calc(int x, int y, out int area) { area = x + y; }
}
class Program
{
static void Main()
{
int res = new TEst().calc(10, 20);
int res2;
new TEst().calc(10, 20, out res2);
Console.WriteLine(res + res2);
}
}