摘要: 一、static 关键字 1、类 Class 的静态属性,静态方法也可以使用 static 关键字 2、结构体 struct 和枚举 enum 的静态属性,静态方法使用 static 关键字 二、class 关键字 class 关键字专门用在 class 类型的上下文中的,可以用来修饰类方法以及类的 阅读全文
posted @ 2018-03-26 15:43 小白姐 阅读(478) 评论(0) 推荐(1) 编辑