OOP Master

SOLID, inheritance vs composition and design patterns, one boss at a time. Clear the game to earn the OOP Master certificate.

1 gameFree to play~6 hoursCertificate
1game to clear

What OOP Master covers

The four pillars, with examples

Object-oriented design questions test whether you can organise code so it stays easy to change. The four pillars are encapsulation (keep data and the rules that protect it together), abstraction (expose what an object does, hide how), inheritance (share behaviour through a parent class) and polymorphism (treat different objects the same way through a common interface). Pillar Match asks you to recognise each one in real code, not just define it.

SOLID and composition

Interviewers often follow up with the SOLID principles. Single responsibility means a class has one reason to change. Open/closed means you add behaviour by adding code rather than editing working code. Liskov substitution means a subclass must work anywhere its parent does. Interface segregation keeps interfaces small, and dependency inversion has high-level code depend on abstractions, not concrete classes.

A good answer also knows when not to use inheritance. Deep class trees are hard to change; composing small objects that each do one job is usually more flexible. Being able to explain that trade-off shows real design experience.

FAQ

Which language are the OOP examples in?
The ideas are language-independent; the code examples use common class syntax that reads the same in JavaScript, TypeScript, Java or Python.