`
talin2010
  • 浏览: 522559 次
  • 性别: Icon_minigender_1
  • 来自: 河北
社区版块
存档分类
最新评论
文章列表
The parameters of a method, if any, are declared by the method?s formal-parameter-list.formal-parameter-list:fixed-parametersfixed-parameters , parameter-arrayparameter-arrayfixed-parameters:fixed-parameterfixed-parameters , fixed-parameterfixed-parameter:attributesopt parameter-modifieropt type iden ...
When a method declaration includes a static modifier, that method is said to be a static method. When nostatic modifier is present, the method is said to be an instance method.A static method does not operate on a specific instance, and it is a compile-time error to refer to this in a staticmethod.An ...
When an instance method declaration includes a virtual modifier, that method is said to be a virtual method.When no virtual modifier is present, the method is said to be a non-virtual method.The implementation of a non-virtual method is invariant: The implementation is the same whether the method isi ...
A constant is a class member that represents a constant value: a value that can be computed at compile-time. Aconstant-declaration introduces one or more constants of a given type.constant-declaration:attributesopt constant-modifiersopt const type constant-declarators ;constant-modifiers:constant-mod ...
A field is a member that represents a variable associated with an object or class. A field-declaration introducesone or more fields of a given type.field-declaration:attributesopt field-modifiersopt type variable-declarators ;field-modifiers:field-modifierfield-modifiers field-modifierChapter 17 Clas ...
A method is a member that implements a computation or action that can be performed by an object or class.Methods are declared using method-declarations:method-declaration:method-header method-bodymethod-header:attributesopt method-modifiersopt return-type member-name ( formal-parameter-listopt )metho ...
A class-declaration is a type-declaration (§16.5) that declares a new class.class-declaration:attributesopt class-modifiersopt class identifier class-baseopt class-body ;optA class-declaration consists of an optional set of attributes (§24), followed by an optional set of class-modifiers(§17.1.1), fo ...
The members of a class consist of the members introduced by its class-member-declarations and the membersinherited from the direct base class.class-member-declarations:class-member-declarationclass-member-declarations class-member-declarationclass-member-declaration:constant-declarationfield-declarat ...
A class is a data structure that may contain data members (constants and fields), function members (methods,properties, events, indexers, operators, instance constructors, destructors, and static constructors), and nestedtypes. Class types support inheritance, a mechanism whereby a derived class can ...
A virtual property declaration specifies that the accessors of the property are virtual. The virtual modifierapplies to both accessors of a read-write property?it is not possible for only one accessor of a read-writeproperty to be virtual.An abstract property declaration specifies that the accessors ...
When a property declaration includes a static modifier, the property is said to be a static property. When nostatic modifier is present, the property is said to be an instance property.A static property is not associated with a specific instance, and it is a compile-time error to refer to this in the ...
The accessor-declarations of a property specify the executable statements associated with reading and writing that property.accessor-declarations: get-accessor-declaration set-accessor-declarationoptset-accessor-declaration get-accessor-declarationoptget-accessor-declaration:attributesopt get accesso ...
A property is a member that provides access to an attribute of an object or a class. Examples of properties includethe length of a string, the size of a font, the caption of a window, the name of a customer, and so on. Propertiesare a natural extension of fields?both are named members with associated ...
The method-body of a method declaration consists of either a block or a semicolon.Abstract and external method declarations do not provide a method implementation, so their method bodiessimply consist of a semicolon. For any other method, the method body is a block (§15.2) that contains thestatements ...
The method overload resolution rules are described in §14.4.2.
Global site tag (gtag.js) - Google Analytics