• It eschews inheritance entirely, making ColorPoint own a reference to an instance of point rather than become a type of point.

    完全避开了继承使ColorPoint拥有一个Point实例引用不是变成种耦合点。

    youdao

  • In his example, Bloch creates two classes - a Point and a ColorPoint - and tries to create an equals method that works correctly for both.

    示例中,Bloch创建PointColorPoint试图创建一个equals方法适用于这个类。

    youdao

  • In his example, Bloch creates two classes - a Point and a ColorPoint - and tries to create an equals method that works correctly for both.

    示例中,Bloch创建PointColorPoint试图创建一个equals方法适用于这个类。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定