Esempio n. 1
0
        public static void Main(string[] args)
        {
            Products apple  = new Products("Apple", 0.6);
            Products orange = new Products("Orange", 0.25);


            Cart myCart = new Cart();

            myCart.products.Add(orange);
            myCart.products.Add(apple);
            myCart.products.Add(orange);

            Console.WriteLine(myCart.priceToPay());
        }