Exemple #1
0
        void PrintDiscount(EnumProduct productEnum)
        {
            IProduct objProduct = new ProductFactory().GetProductType(productEnum);

            Console.WriteLine($" Discount on Fashion {productEnum.ToString()} {objProduct.GetDiscount()} \n Coupoun upto {objProduct.ApplyCoupoun()}\n\n");
        }