Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

pls help me as I am new to C#. The following message is occuredwhen i try to exe

ID: 3609081 • Letter: P

Question

pls help me as I am new to C#. The following message is occuredwhen i try to execute. Error 1 Program'C:Documents and SettingsShahidLocal SettingsApplicationDataTemporaryProjectsConsoleApplication1objReleaseConsoleApplication1.exe'does not contain a static 'Main' method suitable for an entrypoint ConsoleApplication1

using System; namespace ConsoleApplication1
{ public class Car {       publicstring color;       publicCar(){}
      publicstring Color
      {          get          {             returncolor;
         }          set          {
            color= value;
         }
      }
   }
   class Test    {       staticvoid main()
      {          Carcar = new Car();
         car.Color= "Red";          Console.WriteLine("car.Color");
        }
   }
} pls help me as I am new to C#. The following message is occuredwhen i try to execute. Error 1 Program'C:Documents and SettingsShahidLocal SettingsApplicationDataTemporaryProjectsConsoleApplication1objReleaseConsoleApplication1.exe'does not contain a static 'Main' method suitable for an entrypoint ConsoleApplication1

using System; namespace ConsoleApplication1
{ public class Car {       publicstring color;       publicCar(){}
      publicstring Color
      {          get          {             returncolor;
         }          set          {
            color= value;
         }
      }
   }
   class Test    {       staticvoid main()
      {          Carcar = new Car();
         car.Color= "Red";          Console.WriteLine("car.Color");
        }
   }
}

Explanation / Answer

Dear User,       using System;   namespace ConsoleApplication1
    {      publicclassCar      {              publicstatic Car(){}
      publicstatic string Color
      {          get          {             returncolor;
         }          set          {
            color= value;
         }
      }
   }
   class Test    {       staticvoidmain()
      {          Carcar = newCar();
         car.Color ="Red";          Console.WriteLine("car.Color");
        }
   }
}    I hope this will helps toyou   namespace ConsoleApplication1
    {      publicclassCar      {              publicstatic Car(){}
      publicstatic string Color
      {          get          {             returncolor;
         }          set          {
            color= value;
         }
      }
   }
   class Test    {       staticvoidmain()
      {          Carcar = newCar();
         car.Color ="Red";          Console.WriteLine("car.Color");
        }
   }
}    I hope this will helps toyou