Medium
Uber

Design a Multi-Device Smart Home Controller Object-Oriented Design Interview

Design an application that controls multiple smart-home device types (e.g., fan, TV) supporting generic ON/OFF commands common to all devices plus device-specific commands, extensibly.

1. Problem Statement

Design an application that controls multiple smart-home device types, such as a fan and a TV. Every device supports generic commands common to all devices (turn on/off), and some devices support additional device-specific commands. The starter workspace includes one possible shared Device abstraction; assess whether to keep or refactor it, then clarify and state your own assumptions about the exact command set before designing.

2. Live Coding Format

Work in the provided coding workspace while explaining your decisions to the live interviewer. Validation may use inline tests, examples, comments, or a verbal walkthrough.

3. Key Focus Areas

  • 1
    Assessment of the supplied shared abstraction
  • 2
    Generic vs. device-specific command modeling
  • 3
    Command dispatch/extensibility across heterogeneous device types
  • 4
    Clarifying an intentionally ambiguous prompt

4. What Strong Candidates Should Demonstrate

  • Evaluate the supplied shared Device abstraction and justify retaining, slimming, or refactoring it.
  • Design generic vs. device-specific command dispatch without a large conditional over device type.
  • Drive an intentionally underspecified prompt by asking targeted clarifying questions.
  • Add a new device type without modifying existing device classes (Open/Closed Principle).

Want interactive feedback?

Practice this problem in the live coding workspace while the interviewer probes your clarification, implementation, trade-offs, and validation.

Continue to Dashboard

Core Concepts

Object-Oriented DesignCommand PatternExtensibility

Continue preparing

Build a complete software engineer mock interview plan

Related Object-Oriented Design

Design a Meeting Room Booking System

Design a class-level system for booking meeting rooms: register a room, book a meeting given a start time and duration, and cancel an existing meeting with correct conflict detection.

Related Object-Oriented Design

Design a Car Rental System

Design a car rental domain model covering vehicle categories and vehicles, branches, customers and drivers, a rental date range, rate-based quotes, reservations, pickup rental agreements, and return inspection with extra charges — preventing overlapping rentals of the same vehicle.

Related Object-Oriented Design

Design a Cricket Information Platform

Design a cricket scoring domain model covering teams and players, a match, innings, overs and deliveries, batting and bowling scorecards, extras and wickets, striker rotation, over completion, and match results for a configurable limited-overs format.

Related Object-Oriented Design

Design a Group Expense-Splitting Ledger

Design a system where users form groups, log shared expenses using pluggable splitting strategies (equal/exact/percentage), maintain pairwise balances, and settle debts.