正在加载图片...
10.12结构的声明 结构和枚举 常量;字段;方法 口结构的声明 属性 事件 访问修饰符struct结构名 索引器 运算符重载 定义结构成员 带参数构造函数 嵌套结构 public struct Student 构成和类相似 public string studentName,studentlD; public int Age; 定义成员变量不能赋初值 public void SayHi() { 成员方法 结构和枚举 4 10.1.2 结构的声明 ❑ 结构的声明 public struct Student { public string studentName,studentID; public int Age; public void SayHi() { . } } 访问修饰符 struct 结构名 { 定义结构成员 } 构成和类相似 定义成员变量不能赋初值 成员方法 常量;字段;方法 属性 事件 索引器 运算符重载 带参数构造函数 嵌套结构
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有