Why isn’t my program working on my pc but the same code is working on everyone elses?

I'm learning classes and there is something wrong with my code. I'm using VS2015 and my classmates using VS2010 are using the exact same code with no problems

namespace Learning_Classes

{

class Program { static void Main(string[] args) { car myNewCar = new car(); myNewCar.Make = "Oldsmobile"; myNewCar.Mode1 = "Cutlas Supreme"; myNewCar.Year = 1986; myNewCar.Color = "Silver"; Console.WriteLine("{0 - {1} - {2} - {3}", myNewCar.Make, myNewCar.Mode1, myNewCar.Year, myNewCar.Color); Console.ReadLine(); } } class car { public string Make { get; set; } public string Mode1 { get; set; } public int Year { get; set; } public string Color { get; set; } public double DetermineMarketValue() { return 0.0; } } 

by WeTheNorth98 via /r/csharp

Leave a Reply