Design a Credit Card System

Asked at Amazon · System Design for ML · Difficulty: Hard · Last asked Apr 5, 2026

Design the object model for a credit card system. A bank opens an account with a credit limit and issues a card for it. The card is used for purchases, the customer pays the bill, and at the end of each billing cycle the system produces a statement with interest. Deliver a class design with method signatures and the pre- and postconditions of each operation; runnable code is not required.

Loading the problem…