Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public string AddProduct(string type, double price) { Product product = ProductFactory.FactoryProduct(type, price); if (!products.ContainsKey(type)) { products.Add(type, new Stack <Product>()); } products[type].Push(product); return($"Added {type} to pool"); }