Object-Oriented Programming · Amazon · Medium
Design a game-shop system that supports the following capabilities: Credit an account: Provide a way for a user to deposit funds into their shop balance. Buy an item: Let a user purchase an item from the catalog. Decide whether the purchase request should carry the desired quantity or the calculated total price, and explain your choice. Request a refund: Support refunds while accounting for failures such as duplicate requests, insufficient service availability, or a…
Checking your access…