예제 #1
0
		static void main() {
			
			ThreeDCircle o = new ThreeDCircle(); 
			// This calls the Draw() method of the ThreeDCircle. 
			o.Draw(); 
			// This calls the Draw() method of the parent! 
			(( Circle) o). Draw(); 
			Console.ReadLine();
		}
예제 #2
0
        static void main()
        {
            ThreeDCircle o = new ThreeDCircle();

            // This calls the Draw() method of the ThreeDCircle.
            o.Draw();
            // This calls the Draw() method of the parent!
            (( Circle)o).Draw();
            Console.ReadLine();
        }