コード例 #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);
 }