I want to give a fairly simple Delphi example that will expose the dependency injection pattern. No framework, no third-party library will be needed here: just plain Delphi code. I won’t dig into the different forms of dependency injection. I will explain the idea of the pattern as simply as possible.

2978