示例#1
0
        public static void test_6()
        {
            ThreeDCircle d = new ThreeDCircle();

            d.Draw();

            ((Circle)d).Draw();
            Console.ReadLine();
        }
示例#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();
             */
        }