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

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

Name

Email

Website

Comments

For spam detection purposes, please copy the number 7985 to the field below:

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

free web hit counter