• Thus, you should never have a no-argument constructor for an immutable class.

    因此,您永远都不该为一个不可变类提供一个无参数的构造函数。

    youdao

  • An immutable class that meets the previous requirements appears in Listing 1.

    清单1中列出了一个满足上述要求的不可变类。

    youdao

  • Using this style of code is a strong visual indicator that it's an immutable class.

    这种代码风格的使用从视觉上给出了一种强烈的指示:该类是一个不可变类。

    youdao

  • The following example shows two ways to implement an immutable class that has auto-implemented properties.

    下面的示例演示两种方法来实现具有自动实现属性的不可变类。

    youdao

  • The following example shows two ways to implement an immutable class that has auto-implemented properties.

    下面的示例演示两种方法来实现具有自动实现属性的不可变类。

    youdao

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

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

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