Class Members
Fields and methods inside classes are often referred to as “Class Members”:
Example
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!"); } }