在这个例子中,我们没有在被注入者中定义一个实例变量,而是定义了一个返回所需对象的抽象方法。
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
投资者们已注入大量资金购买美国普通股。
例如,由于有新的物质注入二者之间的海底,非洲和南美洲距离越来越远。
Africa and South America, for example, are moving away from each other as new material is injected into the sea floor between them.
应用推荐