Ejemplo n.º 1
0
 public static void Print(PawnShop ps)
 {
     foreach (InventoryItem item in ps.InventoryItem )
     {
         Console.WriteLine(item);
     }
 }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            PawnShop ps = new PawnShop();
          
           Cars c = new Cars("FamilyCar", "siguran i ugodan", 20.000, "Nesto", "Citroen", 2001,Cars.Details.good);

           Watches w = new Watches("SAt", "SAt", 50.0, "SAt", "SAt", 1986, Watches.Material.silver);
           ps.AddExponat(c);
           ps.AddExponat(w);

           Print(ps);
          
        }