Poor man’s dependency injection

Posted on July 25, 2007

class Demo
{
constructor() {
this.constructor(new Dependency1, new Dependency2)
}

constructor(IDependency1 dep1, IDependecy2 dep2) {
// b;ah
}
}

Interface IDependency1…
Interface IDependency2…

Filed Under Uncategorized | Leave a Comment

Leave a Comment

If you would like to make a comment, please fill out the form below.

Name

Email

Website

Comments

© Copyright 0xDEADBEEFCAFE • Powered by Wordpress • Design by Sebastin.

free web hit counter