Event Bus with Emit, Subscribe, and Unsubscribe

Asked at Tesla · Coding Questions · Difficulty: Medium · Last asked Jul 4, 2025

Object-design coding screen: define a listener interface and an event bus class with `emit` and `subscribe`, then support multiple listeners per event and unsubscribe.

Loading the problem…