即使只是暂时使用数据,这也是用对象表示数据的一种很合理的情形。
Even if you use the data only briefly, this is still a situation where using objects to represent your data makes a lot of sense.
这种模式中,一个对象(代理)处理对另一个对象(因为没有更好的名称,暂时称之为实际对象)的访问。
In this pattern, an object (the proxy) handles all access to another object (which, for lack of a better name, I'll call the real object).
“可能你发言的对象是几千号人,他们挤在一个房间里吵吵嚷嚷,面对这样的情况,不妨先暂时专心对一个人说话,”他说。
"Whether you have a few people in the room or a thousand, direct your focus to one person at a time," he said.
让我们暂时假设图1中的类关系图描述了业务对象及其相互关系。
Let's assume for a moment that the class diagram in Figure 1 describes the business objects and the relationships between them.
试验对象并没受到伤害,而他们的症状真的消失了,至少是暂时的-但他们很快与他们的实验者相爱。
The subjects came to no harm—indeed their symptoms appeared to evaporate, at least temporarily—but they quickly fell in love with their experimenters.
允许按任意顺序设置属性,即便这样做会导致出现暂时无效的对象状态也如此。
Do allow properties to be set in any order even if this results in a temporary invalid object state.
也可将对象暂时从项目中移除。
还是适当地保持距离,暂时观察你所钟意的对象吧。
Keep your distance and observe whoever you are interested in for the time being.
很多人会说如果没有合适对象的时候宁愿暂时选择单身。
Somebody will say : I would rather to be single if there is no right for me.
暂时,我希望我已经劝诫你实现这个方法去请求对象的其它接口。
For now, I hope I have convinced you to implement this way of asking for other interfaces to an object.
你不知道自己还可以撑多久,甚至暂时失忆忘记约会对象的名字。
You're not sure how much longer you can hang on, even forget your date's name because of a blackout.
你不知道自己还可以撑多久,甚至暂时失忆忘记约会对象的名字。
You're not sure how much longer you can hang on, even forget your date's name because of a blackout.
应用推荐