Check out example codes for "What is a class in c#". It will help you in understanding the concepts better.

Code Example 1

class Car 
{
  string color = "red";

  static void Main(string[] args)
  {
    Car myObj = new Car();
    Console.WriteLine(myObj.color);
  }
}

Code Example 2

class Car 
{
  string color = "red";
}

Learn ReactJs, React Native from akashmittal.com