SpinTheMic
Pro

Interview practice question

Many callers use a complex subsystem incorrectly

Backend Engineering · OOP and Design Patterns · Intermediate

Ten different parts of the code call the shipping subsystem's six classes in slightly different orders, causing inconsistent results. How do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Facade with clear operations.
  • Encapsulate correct sequence.
  • Hide internal classes.
  • Callers depend only on facade.
  • Easier to change internals.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics