Esempio n. 1
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            Product p = new Product();
            p.Price = 1000;
            Console.WriteLine(p.Discount());

            Console.Write("Press any key to continue . . . ");
            Console.ReadKey(true);
        }
 public decimal CalculateDiscount(Product p)
 {
     return p.Discount();
 }