`
talin2010
  • 浏览: 503232 次
  • 性别: Icon_minigender_1
  • 来自: 河北
社区版块
存档分类
最新评论
文章列表
When an instance method declaration includes a sealed modifier, that method is said to be a sealed method. Asealed method overrides an inherited virtual method with the same signature. An override method can also bemarked with the sealed modifier. Use of this modifier prevents a derived class from fu ...
When an instance method declaration includes an abstract modifier, that method is said to be an abstractmethod. Although an abstract method is implicitly also a virtual method, it cannot have the modifier virtual.An abstract method declaration introduces a new virtual method but does not provide an i ...
When an instance method declaration includes an override modifier, the method is said to be an overridemethod. An override method overrides an inherited virtual method with the same signature. Whereas a virtualmethod declaration introduces a new method, an override method declaration specializes an e ...
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 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 ...
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 ...
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 ...
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 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 ...
A type-declaration is a class-declaration (§17.1), a struct-declaration (§18.1), an interface-declaration(§20.1), an enum-declaration (§21.1), or a delegate-declaration (§22.1).type-declaration:class-declarationstruct-declarationinterface-declarationenum-declarationdelegate-declarationA type-declarat ...
A namespace-member-declaration is either a namespace-declaration (§16.2) or a type-declaration (§16.5).namespace-member-declarations:namespace-member-declarationnamespace-member-declarations namespace-member-declarationnamespace-member-declaration:namespace-declarationtype-declarationA compilation un ...
Using-directives facilitate the use of namespaces and types defined in other namespaces. Using-directivesimpact the name resolution process of namespace-or-type-names (§10.8) and simple-names (§14.5.2), butunlike declarations, using-directives do not contribute new members to the underlying declarati ...
Global site tag (gtag.js) - Google Analytics