Design and Implement a Shopping Cart Object Model for an Online Store

Quick Overview

An object-oriented design exercise that asks you to model and implement a shopping cart for an online store, covering adding, updating and removing products and computing the total. It tests class boundaries, explicit edge-case policies, exact money handling and how cleanly the design extends to promotions.

Design and Implement a Shopping Cart Object Model for an Online Store

Company: Amazon

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: medium

Interview Round: Onsite

Overview: An object-oriented design exercise that asks you to model and implement a shopping cart for an online store, covering adding, updating and removing products and computing the total. It tests class boundaries, explicit edge-case policies, exact money handling and how cleanly the design extends to promotions.

Amazon logo
Amazon
Sep 5, 2026
mediumSoftware EngineerOnsiteSoftware Engineering Fundamentals
14
0
Loading...