Define DiscountPolicy as an interface instead of the abstract class described in Exercise 10. Exercise 10. Create

Question:

Define DiscountPolicy as an interface instead of the abstract class described in Exercise 10.


Exercise 10.

Create an abstract class DiscountPolicy. It should have a single abstract method computeDiscount that will return the discount for the purchase of a given number of a single item. The method has two parameters, count and itemCost.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: