Design the classes that apply promotions — percentage off, buy-X-get-Y, cart-level discounts — to an order cart.
Design the classes that apply promotions — percentage off, buy-X-get-Y, cart-level discounts — to an order cart.
Unlock the full question and reference solution
One-time unlock. Yours forever.
Or get a for every question, unlimited code runs and AI mock interviews.
Opens with the full question.