Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Interview loops in your organisation still ask juniors and seniors alike to list the four OOP pillars. How would you change what is assessed about object-oriented design at different levels?

Reciting the four pillars tests memory, not design skill, so I would replace it with small design and refactoring exercises and assess different things at each level: for juniors, whether they can use encapsulation and polymorphism in working code; for mid levels, modelling choices such as where invariants live, composition versus inheritance and interfaces at boundaries; for seniors, trade-offs over time such as evolving APIs, module boundaries and coupling between teams. Interviewers are calibrated with rubrics and examples of strong and weak answers, and the loop is reviewed against on-the-job performance to see what actually predicts success.

Why this question is asked

Interview loops tend to fossilise. A question that was useful years ago stays because it is easy to ask and easy to score, and soon every candidate, junior or principal, is asked to list encapsulation, abstraction, inheritance and polymorphism. Candidates have memorised the answer, so it tells us almost nothing. Interviewers ask this question of senior leaders because designing a fair, predictive loop is part of building an engineering organisation. In this answer, we will look at what the pillars question really measures, replace it with exercises, define what to assess at each level, calibrate the interviewers, and close the loop with data from real performance.

1What Reciting the Pillars Actually Measures

A question measures what a candidate must do to answer it well. To list the four pillars, a candidate needs to have read any interview preparation guide. It does not show whether they can keep an object valid, choose between composition and inheritance, or design an interface that another team can depend on. So the question has a high pass rate and almost no power to separate a good designer from a weak one, and it actively rewards preparation over skill.

There is a second cost. Senior candidates who are asked a textbook question often conclude that the company does not take design seriously, and the best ones have other offers. The question is cheap for us but expensive in signal and in reputation.

2Replacing Recall With Small Exercises

The replacement is to make candidates do design rather than describe it. A good exercise is small enough for 30 to 45 minutes, has a working starting point, and has more than one reasonable answer. For example, we hand over a 120-line ParkingFeeCalculator with a long if-else chain over vehicle types and time bands, a few passing tests, and a new requirement: weekend rates and electric vehicles. The candidate extends it and explains their choices.

This one exercise naturally reveals the pillars in use. Do they protect the fee rules inside a type rather than spreading them around, which is encapsulation? Do they introduce a type for vehicles or tariffs, which is abstraction? Do they use polymorphism or a sealed type with a switch, and can they say why? Do they reach for inheritance where composition would be simpler? We see the concepts applied, which is what the job needs.

Java
// Starting point handed to the candidate (abridged)
long feeCents(String vehicleType, int minutes) {
if (vehicleType.equals("CAR")) return minutes <= 60 ? 300 : 300 + (minutes - 60) / 30 * 150;
if (vehicleType.equals("VAN")) return minutes <= 60 ? 500 : 500 + (minutes - 60) / 30 * 200;
if (vehicleType.equals("BIKE")) return 100;
throw new IllegalArgumentException(vehicleType);
}
// Task: add weekend rates and electric vehicles; keep the tests green; explain trade-offs

3What to Assess at Each Level

The same exercise can be used at several levels, but the bar and the discussion change. The key idea is that each level is assessed on the decisions it will actually make at work.

What the design interview assesses, by level
LevelExerciseStrong signal
JuniorExtend a small class with testsWorking code, private state, uses polymorphism sensibly
MidModel a feature with a few typesPlaces invariants well, composition first, clean interfaces
SeniorEvolve an API used by other teamsCompatibility plan, module boundaries, explains costs
Staff and aboveReview a multi-service designCoupling across teams, migration path, what not to build
The questions grow from writing correct objects to managing change across people and time.

For mid levels, the interesting questions are about modelling: where does the rule that a weekend rate never exceeds 40 euros a day live, and why there? Would they use inheritance between vehicle types? What interface would the payment team see? For seniors, we change the frame to time. The fee calculator is now a library used by six services; how do we add a parameter without breaking them, which parts should be a separate module, and how do we know the coupling is acceptable? These are trade-offs, and a strong senior explains what each option costs.

4Calibrating the Interviewers

An open-ended exercise is only fair if interviewers score it consistently. We write a rubric for each level with four or five dimensions, such as correctness, modelling, communication and trade-off reasoning, and for each dimension we give concrete anchors: what a strong, acceptable and weak answer looks like, with real examples. A weak mid-level answer might add a fifth if-else branch and a boolean flag; a strong one introduces a tariff type and tests it directly.

New interviewers shadow two or three interviews and then reverse-shadow, interviewing while an experienced colleague scores independently. Every quarter, we compare scores across interviewers on the same exercise and discuss outliers. That keeps the bar the same whether a candidate meets the strictest or the kindest person on the panel.

5Reviewing the Loop Against Real Performance

The final step is to treat the interview loop as a hypothesis about what predicts success, and to test it. Six to twelve months after hiring, we compare interview scores on each dimension with on-the-job signals such as performance reviews, time to first meaningful change and peer feedback. If the modelling score predicts later performance well and the trivia section predicts nothing, the data tells us what to keep.

Step throughImproving the interview loop
  1. Define what each level must do on the jobFrom role expectations
  2. Design exercises and rubrics per levelAnchored examples
  3. Calibrate interviewersShadowing and score reviews
  4. Hire and track outcomes6 to 12 months later
  5. Do scores predict performance?
    YesKeep and refine the dimensionNoChange or drop it

5 steps in order. Play them, or step through them one at a time.

There is a known limitation: we only see the performance of people we hired, so we cannot learn about strong candidates we rejected. Sample sizes are also small for one team. Combining data across teams and watching trends over several hiring rounds helps, but the data should inform judgement rather than replace it.

6Follow-up questions

Is there still any place for asking about the pillars?

As a quick warm-up for very junior or graduate candidates, a light conversation about encapsulation or polymorphism can help them settle in. It should not be scored as a gate. Even then, asking them to show the idea in the code they are writing is more useful than asking for definitions.

How do you make a design exercise fair for candidates who are nervous or slower typists?

We give them the starting code and tests before the session or at its start, let them use their own IDE, and score reasoning as much as typing. Interviewers are trained to ask follow-up questions rather than wait silently, and we allow a short written follow-up if time runs out.

How do you convince interviewers who like the old question?

We run the new exercise in parallel for a few weeks and show the difference in what it reveals, often with anonymised examples of candidates who listed the pillars perfectly but struggled to apply them. Involving those interviewers in writing the rubric also makes them owners of the change.

7Conclusion

In this answer, we saw that listing the four pillars measures recall, not design skill, and should give way to small design and refactoring exercises. Juniors are assessed on correct, well-encapsulated code, mid levels on modelling choices such as invariants, composition and interfaces at boundaries, and seniors on trade-offs over time such as API evolution, module boundaries and coupling across teams. Rubrics with anchored examples calibrate interviewers, and comparing scores with later on-the-job performance shows which parts of the loop actually predict success.

What to say in the interviewAbout 90 seconds aloud

Open with

My first point would be that reciting the four pillars measures memory, not design ability. Everyone has read the same preparation guides, so it doesn't separate candidates, and senior people often read it as a sign we don't take design seriously.

Then, if they want more

I'd replace it with a small, realistic exercise, for example a fee calculator with a long if-else chain, passing tests, and a new requirement, and ask the candidate to extend it and explain their choices. That shows the pillars in use. Then I'd vary what we assess by level. For juniors, working code, private state, sensible use of polymorphism.

For mid levels, modelling choices: where invariants live, composition versus inheritance, and what interface a neighbouring team would see. For seniors, trade-offs over time: the calculator is now a library used by six services, so how do we evolve its API, where are the module boundaries, and what coupling are we accepting.

To keep it fair, I'd write a rubric per level with anchored examples of strong and weak answers, and calibrate interviewers through shadowing and quarterly score reviews.

Finally, I'd treat the loop as a hypothesis: six to twelve months after hiring, compare interview scores with on-the-job performance, keep the dimensions that predict success and change the ones that don't, while remembering we only see the people we hired.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Interview loops in your organisation still ask juniors and seniors alike to list the...": https://scrivio-interview-library.netlify.app/java/oop-principles/bfdd4d4461/