Information Technology Reference
In-Depth Information
Figure 6-5.
Static methods of a class can be called even if there are no instances of the class.
Other Static Class Member Types
The types of class members that can be declared
static
are shown checked in Table 6-2. The
other member types cannot be declared
static
.
Table 6-2.
Class Member Types That Can Be Declared Static
Data Members
(Store Data)
Function Members
(Execute Code)
✓
Fields
Constants
✓
Methods
✓
Operators
Indexers
✓
Properties
✓
Constructors
✓
Events
Finalizers