Exemplo n.º 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();
		}
Exemplo n.º 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();
        }