فیلدها و متدهای داخل کلاسها اغلب به عنوان "اعضای کلاس" نامیده میشوند:
Create a Car class with three class members:
two fields and one method.
// The class
class MyClass
{
// Class members
string color = "red"; // field
int maxSpeed = 200; // field
public void fullThrottle() // method
{
Console.WriteLine("The car is going as fast as it can!");
}
}