Question OOP-SOLID-0013
MediumWhat is dependency injection?
- A.
Inheriting from many classes
- B.
Injecting code into a running program
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
SOLID and Design Principles question
What is dependency injection?
Inheriting from many classes
Injecting code into a running program
Sign up free to see the answer and a step-by-step explanation.
Supplying an object's dependencies from outside (e.g. through its constructor) instead of creating them inside
Adding more libraries