using System;
public class Program
{
public class Car
private string brand;
private string model;
private string colour;
private string year;
public string Brand
get { return brand; }
set { brand = value; }
}
public string Model
get { return model; }
set { model = value; }
public string Colour
get { return colour; }
set { colour = value; }
public string Year
get { return year; }
set { year = value; }
public static void Main()
Car my = new Car();
my.Brand = "Volkswagen";
my.Model = "passat";
my.Colour = "cheren";
my.Year = "2008";
Console.WriteLine(my.Brand);
Console.WriteLine(my.Model);
Console.WriteLine(my.Colour);
Console.WriteLine(my.Year);