Пример #1
0
        static void Main(string[] args)
        {
            Tabletop t = new Tabletop(4.5, 7.5);

            t.Display();
            Console.ReadLine();
        }
        static void Main(string[] args)
        {
            Rectangle myRectangle = new Rectangle(10, 20);

            myRectangle.Display();
            Console.WriteLine("======");

            //  Console.WriteLine("Length of my Rectangle: {0}", myRectangle.length);
            // Console.WriteLine("Area of myRectangle: {0}", myRectangle.GetArea());

            Tabletop t = new Tabletop(4.5, 7.5);

            t.Display();
            Console.ReadLine();
        }
Пример #3
0
 static void Main(string[] args)
 {
     Tabletop t = new Tabletop(4.5, 7.5);
     t.Display();
     Console.ReadLine();
 }