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 your classes, and address issues associated with these items.
In This Section
Adding Fields and Properties to a Class
Provides information on declaring fields and properties.
Properties and Property Procedures
Explains how Property procedures work, and how to implement common property types.
Property Procedures vs. Fields
Helps you decide when to use fields to store data in a class, and when properties are a better choice.
Helps you decide whether your desired functionality is best implemented as a property or a method.
Overloaded Properties and Methods
Covers how to define multiple properties or methods that have the same name, but work with different data types.
Overriding Properties and Methods
Discusses redefining an inherited property or method.
Related Sections
Demonstrates how to create and use instances of classes.
Demonstrates how to declare and use events.