Learn Dependency — a key concept for LLD interviews.
Interactive — Try it yourself!
How to use
1See Client and Service connected by a dashed arrow
2Click "Change Service API" — Client breaks with red flash!
3This is a temporary, usage-based relationship
4Client depends on Service but doesn't own it
In a nutshell
Dependency is the weakest relationship — one class uses another temporarily. Client calls Service methods but doesn't hold a reference. Change the Service API → Client breaks.