Design a Calculator in OOP
This one comes from India campus loops between 2020 and 2023. In July 2023 a Pune campus candidate for a full-time SDE role got it in the Pro-Fit round, with the percentage and mod follow-up. In a 2020 virtual campus drive, a technical round asked for a calculator implementation in code. That candidate couldn't cover every case and the interviewer still liked the approach. A third 2023 round didn't ask for a calculator but shows what these rounds want. The interviewer gave a problem statement and asked for it as classes. The candidate reached for inheritance and more. Afterwards the interviewer described the approach he'd have used, and it was "just a very basic single class."
So the prompt is easy, and what separates answers is taste. Anyone can add two numbers. A strong answer is a model you can write by hand in ten minutes that still reads as object-oriented, shaped so the follow-up costs a couple of lines.
Deutsche BankPremium lesson · System design round
The Deutsche Bank design, worked end to end.
- Requirements and scopeSystem design
- The design, drawn out1 diagram
- 5 deep divesWith the tradeoffs
$49 a year · all 107 companies · instant access
20,000+ candidate reports
Deutsche Bank interview guideKnow what Deutsche Bank asks before you walk in.
28 coding · 5 system design · 29 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.