static void Main(string[] args) { Bagi bagi = new Bagi(); Console.Write("A new empty bag has created\n"); Balls pallot = new Balls(10); Maila driver = new Maila("Driver", 1); Maila fairway = new Maila("Fairway", 3); Maila wedge = new Maila("Wedge", 55); bagi.AddBalls(pallot); bagi.AddMaila(driver); bagi.AddMaila(fairway); bagi.AddMaila(wedge); bagi.ShowContents(); string nimi = "Fairway"; bagi.RemoveMaila(nimi); bagi.RemoveBalls(2); bagi.ShowContents(); }
public void AddMaila(Maila maila) { Console.WriteLine("Trying to add a new club to the bag: {0}", maila); mailat.Add(maila); }