Problem Statement
Which statement best describes dependency injection in Swift architecture?
Explanation
Dependency injection means providing a class its dependencies rather than having the class create them. This reduces coupling, improves testability and aligns with clean architecture principles in Swift. This topic often appears in architecture interview questions.
Practice Sets
This question appears in the following practice sets: