Пример #1
0
        public static void Main()
        {
            imp ob;

            ob = new rectangle();
            ob.get();
            ob.area();
            ob.display();

            ob = new square();
            ob.get();
            ob.area();
            ob.display();
        }
Пример #2
0
        public static void Main()
        {
            square a = new square(4);

            Console.WriteLine("the area of square is:{0}", a.area());
        }