By arranging for objects of different types to implement common methods, we move the dispatch decision into the objects and out of an explicit conditional block.
通过安排不同类型的对象来执行公共方法,我们将分派决定移到对象中并从显式条件块中消除。
For example, a blueprint shows the locations of different rooms, how to move between them, and the doors into and out of the house.
例如,设计图会显示不同房间的位置、在房间之间的移动方式以及出入房子的通道情况。
The Tripps say people have moved out of a nearby apartment complex as well as refused to move into the neighborhood because of the installation.
特里普夫妇说因为这个基站的原因人们已从附近的公寓楼迁出并且拒绝再搬入该居民区。
应用推荐