Loading
Current section: 4. Composition vs Inheritance 4 exercises
Problem

Dependency Injection

Loading exercise

Transcript

00:00 Okay. In this one, we're actually gonna take the same example from before and we're going to expand it a little bit to talk specifically about a, pattern called dependency injection. Really, it's just basically like passing arguments to a function. That's all dependency injection really is, but it's a particular pattern that makes testing a lot easier and you're definitely going to see this in the industry. So we're gonna talk about it specifically, jump into this, finish that, and we'll see you when you're done.