共用方式為


Class Properties, Fields, and Methods 

In general, fields and properties represent information about an object, whereas methods represent actions an object can take.

The following topics describe the mechanisms for adding properties, fields, and methods to classes, and address issues associated with these items.

In This Section

  • Class Methods
    Discusses the public procedures you add to your class.
  • Properties vs. Methods
    Helps you decide whether your desired functionality is best implemented as a property or a method.