Dependency Injection

101

Explain 

Often your classes depend on each other

Explain 

Let's say we have a Database class

All is great - but we need a Logger class

Class Database
{
    //...
}
Class Database
{
    var logger = new Logger();
}

Dependency Injection

By Amir Gal-Or

Dependency Injection

  • 567