Members

Classes and structs have members that represent their data and behavior.

The following table lists the kinds of members a class or struct may contain:

MemberDescription
FieldsFields are variables declared at class scope.
ConstantsConstants are fields or properties whose value is set at compile time and cannot be changed.
PropertiesProperties are methods that are accessed as if they were fields.
MethodsMethods define the actions that a class can perform.
EventsEvents provide event notifications.
OperatorsOverloaded operators.
IndexersIndexers enable an object to be indexed in a manner similar to arrays.
ConstructorsConstructors are methods that are called when the object is first created.
DestructorsDestructors are methods that are called by the runtime when the object is about to be removed from memory.
Nested TypesNested types are types declared within another type.
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.