Interviewer asked if either parameter or method newly added in interface then the whole method or parameter handled in controller.
Then how we told Dependency injection as loosely coupled….
Interviews1 answer
1 Answer
Because the created instance is reused as per used service lifecycle injection
Ex: AddSingleton, AddTransient & AddScoped
If DI is not used, separate instances will be created where those instances cannot be reused - so called tightly coupled.
Vinay Kumar DaraPosted Oct 11, 2022, 10:11 PM EDT

