18.2 Struct members
来源:互联网 发布:java构造函数示例 编辑:程序博客网 时间:2024/05/16 00:46
The members of a struct consist of the members introduced by its
struct-member-declarations and the
members inherited from the type System.ValueType.
struct-member-declarations:
struct-member-declaration
struct-member-declarations struct-member-declaration
struct-member-declaration:
constant-declaration
field-declaration
method-declaration
property-declaration
event-declaration
indexer-declaration
operator-declaration
constructor-declaration
static-constructor-declaration
type-declaration
Except for the differences noted in §18.3, the descriptions of class
members provided in §17.2 through
§17.11 apply to struct members as well.
struct-member-declarations and the
members inherited from the type System.ValueType.
struct-member-declarations:
struct-member-declaration
struct-member-declarations struct-member-declaration
struct-member-declaration:
constant-declaration
field-declaration
method-declaration
property-declaration
event-declaration
indexer-declaration
operator-declaration
constructor-declaration
static-constructor-declaration
type-declaration
Except for the differences noted in §18.3, the descriptions of class
members provided in §17.2 through
§17.11 apply to struct members as well.
- 18.2 Struct members
- [Cexpert-002] How to assign default values to fields/members of a struct?
- 10.4 Members
- vector members
- Internal Members
- CFile Members
- CFileDialog Members
- AUTOSAR members
- Static Members:
- Stable Members
- Design with static members
- ClientSideEvents Class Members
- 14.4 Function members
- 16.4 Namespace members
- 17.2 Class members
- 17.2 Class members
- 19.4 Array members
- 20.2 Interface members
- Java连接Access数据库
- Java5泛型的用法,T.class的获取和为擦拭法站台
- 热烈庆祝
- 18. Structs
- 18.1 Struct declarations
- 18.2 Struct members
- 18.3 Class and struct differences
- 18.4 Struct examples
- 19. Arrays
- 19.1 Array types
- 19.2 Array creation
- 19.3 Array element access
- 19.4 Array members
- 19.5 Array covariance