Exemplo n.º 1
0
        public static void test_6()
        {
            ThreeDCircle d = new ThreeDCircle();

            d.Draw();

            ((Circle)d).Draw();
            Console.ReadLine();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Object circle       = new Manager();
            Shape  hexagon      = new Hexagon("Krolche");
            Shape  threeDCircle = new ThreeDCircle();

            (circle as Shape)?.Draw();

            /*
             * circle.Draw();
             * hexagon.Draw();
             * threeDCircle.Draw();
             */
        }