示例#1
0
        static void Main(string[] args)
        {
            PawnShop p = new PawnShop();
            Inventory i = new Inventory(1, "Painting", "Picasso's painting", 1000000);
            Vehiacle v = new Vehiacle("Sedan", 2006, "Alfa Romeo", "Weak", 2, "Car", "Sports car", 15000);
            Watches w = new Watches("Gold", "Rolex", 1978, 7, "Watch", "Expensive", 50000);
            p.AddInventory(i);
            p.AddInventory(v);
            p.AddInventory(w);

            PrintInventory(p);
        }