get和set用於設定class內變數的屬性如果要設定變數只可讀不可寫,就是用get, ... C# get set ... public string Sex //get set 簡寫 可讀可寫.
確定! 回上一頁