...

/

Challenge: Dependency Injection

Challenge: Dependency Injection

Try to solve the dependency between classes using dependency injection and type hinting.

Since these problems are designed for your practice, try to solve them yourself first. If you get stuck, you can click the “Show Solution” button to see how the problem can be solved. Good luck!

Task 1

Write an Article class that is dependent on an Author class and introduce the Author object ...