2015年11月2日 星期一

變數的類型

public class Progame
{
   public static int x; // 公開靜態變數
   int y; //非靜態變數
   void Test(int[] a, int b, ref int c, out int d) // int[] a 陣列,  int b 值參數, ref int c 參考參數, out int d 輸出參數
   {
       int i = 1; //區域變數
   }
}

沒有留言: