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
chandlerbing016 profile image
Sumit Wadhwa Author

Thanks so much for making it clear.