static void Main(string[] args) { Params p; p = new Params(); int x = 0, y = 0; p.math1(100, 50, ref x, ref y); Console.WriteLine(x + " " + y); int m, n; p.math2(100, 25, out m, out n); Console.WriteLine(m + " " + n); p.AddNum(100); p.AddNum(100, 100); p.AddNum(100, z: 100); p.AddNum(200, 200, 300); Console.ReadLine(); }