public static void Main()
Product myProduct = new Product();
myProduct.make = "Toyota";
myProduct.color = "black";
myProduct.SetYearBuilt(1995);
Console.WriteLine("myProduct.make = " + myProduct.make);
Console.WriteLine("myProduct.model = " + myProduct.model);
Console.WriteLine("myProduct.color = " + myProduct.color);
Console.WriteLine("myProduct.GetYearBuilt() = " + myProduct.GetYearBuilt());
protected internal string model;
protected int horsepower = 150;
public void SetYearBuilt(int yearBuilt)
this.yearBuilt = yearBuilt;
public int GetYearBuilt()
Console.WriteLine("Starting Product ...");
Console.WriteLine("Product started");
private void TurnStarterMotor()
Console.WriteLine("Turning starter motor ...");