摘要: public class Persion { 字段; 属性; 方法; } eg: public class Persion { string _name; public string Name { get {return _name} set {_name = value} } 方法; } 字段快速 阅读全文
posted @ 2018-12-05 06:45 风情单车 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 一、变量命名规范 1、Camel:变量名首单词的首字母小写,其余每个单词首字母单词大写,多用于给变量或字段或方法参数命名。 eg:highSchoolStudent; 2、Pascal:每个单词的首字母都要大些其余小写,多用于类或方法。eg:HighSchoolStudent; 二、变量的作用域 一 阅读全文
posted @ 2018-12-05 03:01 风情单车 阅读(5653) 评论(1) 推荐(1) 编辑