摘要:
C#属性是对类中的字段(fields)的保护,像访问字段一样来访问属性。同时 也就封装了类的内部数据usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespaceExample_1{classage{privateint_age;publicvoidSetAge(inta){if(a<0){Console.Writ... 阅读全文
posted @ 2007-11-13 19:16
code-fish
阅读(11718)
评论(1)
推荐(0)
浙公网安备 33010602011771号