InterviewLegend

Design a Credit Card System (OOD)

Sometimes asked
Alex Chen42 min readAdded 55 real interview reports

A credit card is a loan with a plastic handle. The bank gives the customer a credit limit, say $5,000. Every purchase borrows against it, and once a month a statement says what's owed and by when. Pay it all and you owe no interest. Pay less and interest starts building on what's left. The part most people never see is the gap between the swipe and the bill. When you tap your card at a restaurant, the bank approves $50 and holds that much of your credit. A day or two later the restaurant settles for $60 with the tip, and that's the amount that lands on your account. Two events, two amounts, one purchase. A good design models both.

This is a low-level design (LLD) round, also called object-oriented design (OOD), so the interviewer wants classes, methods and real code more than boxes for a million users. We'll write it in Java, since Fidelity's technical interviews lean hard on Java and Spring. The interesting parts are the modeling choices, the state of each purchase and the money rules. Concurrency matters too, because two cards can share one credit limit.

The Fidelity angle
At Fidelity this prompt sits in the object-oriented design round, often on a whiteboard. A 2025 co-op loop reportedly paired it with design pattern and resume questions. Draw the classes, explain them plainly and name the pattern behind each choice. Keep the balance private from the first box, since encapsulation is the easiest principle to show.

FidelityPremium lesson · System design round

The Fidelity design, worked end to end.

  1. The API and data modelSystem design
  2. The design, drawn out3 diagrams
  3. 5 deep divesWith the tradeoffs
Get the Fidelity questions

$49 a year · all 107 companies · instant access

20,000+ candidate reports · guide updated

Fidelity interview guide

Know what Fidelity asks before you walk in.

28 coding · 3 system design · 15 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your Fidelity interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.