所有其他函数的使用方法相同。
逐渐熟悉一下一些常见的函数的使用方法。
Become familiar with what some of the common function to use.
如果您有一个需要某些依赖项的超类,也可以使用方法注入(构造函数注入会使这种情况变得很复杂)。
You can also use it if you have a superclass that needs some dependencies. (Constructor injection makes this difficult.)
应用推荐