Skip to content
Preptima

Structural Patterns interview questions

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

3 questions in Low-Level Design & OOD.

medium2

mediumDesignCoding

A bundle can contain products or other bundles, and the pricing code should not care which it is holding. How would you model that?

A composite gives leaves and containers one interface so callers recurse without branching. The two decisions that matter are whether child management appears on that shared interface, and which operations genuinely aggregate - because price, availability and delivery date do not combine the same way. It also connects tree structures to the point an interviewer is testing.

6 minmid, senior, staff

hard1