(3.5 point) The class Product that contains:
Four public properties (not public fields,: Id (int), Name (string), Type (string) and Price (double).
Necessary constructors.
Two public methods:
public void Display (TaxCalculation c)
that display information of product with the tax calculated in the way of delegate c.
public static double Display (List<Product> products, TaxCalculation c)
using the method Display (TaxCalculation) above to display information of all products in list products.
With the main function given in Figure 1 below, your code must have the same result as the Figure 2.
(You can find this code in the Given Materials.)
Zoom
100%
Close