예제 #1
0
파일: Program.cs 프로젝트: dizinor/IT-Step
        static void Main(string[] args)
        {
            Triangle      t    = new Triangle();
            Square        s    = new Square();
            Rhombus       rh   = new Rhombus();
            Rectangle     rect = new Rectangle();
            Parallelogram p    = new Parallelogram();
            Trapeze       tr   = new Trapeze();
            Circle        r    = new Circle(20);
            Ellipse       e    = new Ellipse();

            Console.WriteLine(t);
            Console.WriteLine(s);
            Console.WriteLine(rh);
            Console.WriteLine(rect);
            Console.WriteLine(p);
            Console.WriteLine(tr);
            Console.WriteLine(r);
            Console.WriteLine(e);
        }
예제 #2
0
파일: Program.cs 프로젝트: slmtik/IT-Step
 static void Main(string[] args)
 {
     Triangle t = new Triangle();
     Square s = new Square();
     Rhombus rh = new Rhombus();
     Rectangle rect = new Rectangle();
     Parallelogram p = new Parallelogram();
     Trapeze tr = new Trapeze();
     Circle r = new Circle(20);
     Ellipse e = new Ellipse();
     Console.WriteLine(t);
     Console.WriteLine(s);
     Console.WriteLine(rh);
     Console.WriteLine(rect);
     Console.WriteLine(p);
     Console.WriteLine(tr);
     Console.WriteLine(r);
     Console.WriteLine(e);
 }