There are kinds of different variants of dependency injections — constructor, function and etc. Even if you see a simple function with a “String” parameter, you could consider this as a dependency injection, because your function depends on this parameter (so very trivial 😃).

But the question can appear, why…

Victor Kachalov

A mobile developer at Thalia GmbH in Berlin, Germany 🇩🇪 https://github.com/VictorKachalov

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store