Skip to content
QSWEQB

Low-Level Design & OOD interview questions

Object-oriented design rounds where you produce classes, interfaces, and interactions rather than infrastructure boxes and arrows.

12 published across 7 topics.

Low-level design fundamentals60 short answers on one page, for revising rather than studying.

OOP Principles

1 question

Encapsulation, inheritance versus composition, polymorphism, and where each genuinely applies.

SOLID & Design Heuristics

2 questions

The five principles with realistic violations and refactorings, plus cohesion and coupling reasoning.

Creational Patterns

2 questions

Factory, builder, singleton, and prototype, including when each is over-engineering.

Structural Patterns

1 question

Adapter, decorator, facade, proxy, and composite as answers to concrete design pressures.

Behavioural Patterns

2 questions

Strategy, observer, state, command, and template method in interview-sized problems.

mediumConceptDesign

When would you use the observer pattern, and what goes wrong with it at scale?

Observer decouples a subject from things that react to it, which is right when the subject genuinely should not know its listeners. The costs are a control flow you cannot read from the code, listener lifetimes that leak, and an exception in one observer that silently prevents the rest from running.

4 minmid, senior, staff
mediumConceptDesign

When would you use the strategy pattern instead of inheritance?

Use strategy when behaviour varies along an axis separate from what the object is. Composition lets two axes combine without one subclass per pair, lets the behaviour be swapped at runtime, and lets the algorithm be tested without constructing its host.

5 minmid, senior, staff

Concurrency in Design

2 questions

Thread-safe components, lock granularity, and immutable-object strategies.

Machine Coding Rounds

2 questions

Parking lot, elevator, vending machine, Splitwise, and other timed build-it problems.

hardDesignCoding

Design a parking lot system — you have 90 minutes, working code at the end.

Scope it in the first five minutes to one deterministic flow of park, unpark and charge, model Vehicle, Slot, Level, Ticket and a ParkingLot facade, then push slot allocation and pricing behind strategy interfaces so the variants asked at review time are configuration rather than surgery.

5 minmid, senior, staff