public ProductBase(StockBox stockBox, string name, double price, string type, int weight, string brand) { MyStockBox = stockBox; Name = name; Price = price; Type = type; Weight = weight; Brand = brand; MyStockBox.AddItem(this); }
public Vegetables(StockBox stockBox, string name, double price, string type, int weight, string brand) : base(stockBox, name, price, type, weight, brand) { }
public Lemonade(StockBox stockBox, string name, double price, string type, int weight, string brand) : base(stockBox, name, price, type, weight, brand) { }
public void RemoveFromStockBox(StockBox stb) { RemovedStockBoxes.Remove(stb); }
public void AddStockBox(StockBox stb) { MyStockBoxes.Add(stb); }