using System.Collections.Generic;
public static void Main()
Console.WriteLine("Hello World");
INoisyItem Fido = new Dog("Fido");
Tractor JD = new Tractor();
Console.WriteLine("JD is in {0}", JD.getCurrentGear());
Console.WriteLine("JD is in {0}", JD.getCurrentGear());
List<INoisyItem> FarmThings = new List<INoisyItem>();
INoisyItem NoNameDog = new Dog();
FarmThings.Add(NoNameDog);
foreach(INoisyItem FT in FarmThings){
Console.WriteLine("{0} woofs \"Bark, bark!\"", name);
Console.WriteLine("Bark, bark!");
class Tractor : INoisyItem{
private int currentGear = 1;
Console.WriteLine("Vroom, vroom");
public int getCurrentGear(){