Mini project: ShopLite cart pricing with beans
60 min · Intermediate
Need help? Ask a tutor on WhatsApp (opens in a new tab)Cart pricing is a small chain of rules: add up the items, take off the discount that applies today, add GST. Each rule becomes its own bean, and one stateless service wires them together through its constructor.
Sign in to continue this lesson
Create an account to read every lesson, practise with the exercises and keep track of your progress.