예제 #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());
        }