Dependency Injection

One way to loosen up your code is to send in the dependencies that a class needs through its constructor. The best way to see this is with some code.

Almost there - just need you to log in real quick!

You're not logged in at the moment and the course you're trying to access is for logged in people. If you don't own the course - just head over to our courses page and we'll get you squared away!

Pen
>