試問這段代碼輸出何種結果

  1. using System;    
  2. public class Program    
  3. {   public static void Main()    
  4.     {    
  5.     Show(null);    
  6.     Show("");    
  7.     Show(1);    
  8.    }    
  9.   
  10.     static void Show(Object o)    
  11.     {    
  12.     Console.WriteLine("Object");    
  13.     }    
  14.         
  15.     static void Show(String s)    
  16.     {    
  17.     Console.WriteLine("String");    
  18.     }    
  19.         
  20. }  
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章