System Design · Low-Level Design · Topic 1 of 3
OOP & SOLID
4 questions.
Your progress0%
- 1st Visit
- 0/4
- 2nd Visit
- 0/4
- Revise
- 0/4
Overview
Low-level design rounds start from object-oriented principles: how to group data and behaviour into classes, hide implementation details, and structure code so that it can change without breaking. This topic covers the four pillars of OOP, abstract classes versus interfaces, the SOLID principles, and the preference for composition over inheritance. Interviewers test these both as direct definitions and indirectly, by watching whether your class designs follow them. Be ready to give a short concrete example for each principle, ideally from a familiar domain such as payments, shapes or notifications. The concepts are language-neutral, but examples in Java or C++ are expected, so know how your language expresses interfaces and polymorphism.
Questions
| # | Problem | Platform | Difficulty | Open | 1st1st Visit | 2nd2nd Visit | RevRevise |
|---|---|---|---|---|---|---|---|
| 1 | What are the four pillars of object-oriented programming? | Concept | Easy | Read the answer to What are the four pillars of object-oriented programming? | |||
| 2 | What is the difference between an abstract class and an interface? | Concept | Easy | Read the answer to What is the difference between an abstract class and an interface? | |||
| 3 | What are the SOLID principles? | Concept | Medium | Read the answer to What are the SOLID principles? | |||
| 4 | Why is composition often preferred over inheritance? | Concept | Medium | Read the answer to Why is composition often preferred over inheritance? |