Run »
prog.cs
prog2.cs
using System; namespace MyApplication { class Program { static void Main(string[] args) { Car myObj = new Car(); Console.WriteLine(myObj.model); } } }
using System; namespace MyApplication { class Car { private string model = "Mustang"; } }
'Car.model' is inaccessible due to its protection level
The field 'Car.model' is assigned but its value is never used