Giorgio Sironi04/24/13
1775 views
0 replies
The constructor of an object contains a declaration of its dependencies, in hardwired or injected form. There are a few exceptions, such as creating new objects all over the place inside other methods (with no regard for Dependency Injection), accepting objects as method parameters or with setters; however, constructor injection remains one of the simplest and more powerful ways to build a web of collaborating objects.