Exemplo n.º 1
0
        private static void Main(string[] args)
        {
            PlayWidthShape();
            ShapeArray sa = new ShapeArray();

            sa.MyList();
        }
Exemplo n.º 2
0
        private static void PlayWithCollection()
        {
            ShapeArray sa = new ShapeArray();

            sa.DimensionalArray();
            sa.MyList();
            sa.MyDictionary();
        }
Exemplo n.º 3
0
        static void PlayWithShape()
        {
            Shape a = new Cube(12, 10);

            Console.WriteLine(a.Volume());
            Cube b = new Cube(12, 6);

            Console.WriteLine(b.Volume());
            Square c = new Cube(12, 5);

            Console.WriteLine(c.Volume());
            ShapeArray sharr = new ShapeArray();

            sharr.MyDictionary();
            sharr.MyList();
        }