Beispiel #1
0
        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);
        }
Beispiel #2
0
 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);
 }