在这个例子中,我们没有在被注入者中定义一个实例变量,而是定义了一个返回所需对象的抽象方法。
In this case we do not define an instance variable in the injectee, but an abstract method returning the required object. The method may be public or protected
Lindey先生指出,如果能有10万投资者参与这项计划,那将为房地产业注入至少1万亿美元的资金,并将解决相当一部分的住房过剩问题。
Mr. Lindsey points out that 100, 000 participants in the scheme would pump at least $1 trillion into the housing industry, and would wipe out a large slice of excess housing inventory.
Lindey先生指出,如果能有10万投资者参与这项计划,那将为房地产业注入至少1万亿美元的资金,并将解决相当一部分的住房过剩问题。
Mr. Lindsey points out that 100,000 participants in the scheme would pump at least $1 trillion into the housing industry, and would wipe out a large slice of excess housing inventory.
应用推荐