Loading…
5+ curated questions with the same answer shape every time: quick recap, deep dive, pitfalls, and follow-ups. Coverage includes four pillars, dry and solid basics, naming conventions.
Suggested path
Topics follow a teaching order. Each answer ends with a clear Next question control so you can move forward without hunting the list.
Object-oriented design basics interview questions test whether you can think about code structure, not just write code that works. This module covers the four OOP pillars with Ruby examples (encapsulation — private methods and instance variables, abstraction — expose a clean interface, inheritance — class Dog < Animal, polymorphism — same method name different behavior), the BankAccount class design exercise interviewers use to test OOP thinking, DRY (Don't Repeat Yourself) — recognising duplication and extracting a method, Keep It Simple, the Ruby naming conventions interviewers care about (predicate methods end with ?, mutating methods end with !, constants in UPPER_SNAKE_CASE), and SOLID at a concept level (single responsibility — one class, one job; open/closed — open to extension). All explanations stay at fresher depth — no service objects, no hexagonal architecture.
Full catalog
Topics are ordered for learning. Within each topic, rows are numbered 1–5 globally so you always know where you are. Collapse topics if you want a lighter view — use Expand all when you need the full list again.
Numbers 1–5 follow the order we recommend — click any row to open the full answer, or use the sticky Next link at the bottom of each page to go Q1 → Q5.