Example #1
0
 private static void Main(string[] args)
 {
     Console.Write("成功");
     FallInLove fall = new Winer();
     fall.Go();
     Console.WriteLine("-------------------------------");
     Console.Write("失败");
     fall = new Loser();
     fall.Go();
     Console.ReadLine();
 }
Example #2
0
        private static void Main(string[] args)
        {
            Console.Write("成功");
            FallInLove fall = new Winer();

            fall.Go();
            Console.WriteLine("-------------------------------");
            Console.Write("失败");
            fall = new Loser();
            fall.Go();
            Console.ReadLine();
        }