The concept and function of IoC

IoC (Inversion of Control) control inversion gives the framework the right to create objects. It is an important feature of the framework. It is not a specialized term for object-oriented programming, including Dependency Injection (DI) and Dependency Lookup. Its role is to reduce coupling (dependencies) between programs.
The principle can refer to:
use factory mode decoupling
use factory mode decoupling singleton version

Published 56 original articles · liked 0 · visits 534

Guess you like

Origin blog.csdn.net/qq_41242680/article/details/105583243