DEV Community

Discussion on: Explain Dependency Injection Container like I'm five

Collapse
 
17cupsofcoffee profile image
Joe Clay

Yep, polymorphism is what I was referring to, apologies if that wasn't clear! In the second example, MyDependency could be an class with multiple sub-classes or an interface with multiple implementors.

Thread Thread
 
swadhwa16 profile image
Sumit Wadhwa

Thanks so much for making it clear.