Beispiel #1
0
 public void Add(ProductBase product)
 {
     _content.Add(product);
 }
Beispiel #2
0
 public void Remove(ProductBase product)
 {
     _content.Remove(product);
 }
        private static void CheckPrice(ProductBase storage)
        {
            var price = storage.CalculateTotalPrice();

            Console.WriteLine($"Cena sumarycna {price}");
        }