C Sharp (C#) - Properties and Encapsulation
Identify the error in this code snippet:
class Car {
private string model;
public string GetModel() {
return model;
}
}
class Program {
static void Main() {
Car c = new Car();
Console.WriteLine(c.model);
}
}