public static void test_6() { ThreeDCircle d = new ThreeDCircle(); d.Draw(); ((Circle)d).Draw(); Console.ReadLine(); }
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(); */ }