Пример #1
0
        static void Main(string[] args)
        {
            //Person person1 = new Person();
            //person1.Person1("nhat");
            //Console.WriteLine(person1.SayName());
            //Console.ReadKey();

            Rec area = new Rec();

            area.SetSize(30, 20);
            Console.WriteLine(area.GetArea());

            int result = area.GetPerimeter();

            Console.WriteLine(result);


            //Calculation cal = new Calculation();
            //int x=200;
            //int y = 300;
            //int resultFM = cal.FindMax(x, y);
            //Console.WriteLine(resultFM);

            Calculation cal = new Calculation();
            int         resultFM;

            resultFM = cal.FindMax(20, 30);
            Console.WriteLine(resultFM);

            Console.ReadKey();
        }