What is a class in c#

C#
class Car 
{
  string color = "red";

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

Also in C#: