• Also note that class definitions must appear at the top level of a module, meaning they cannot be nested classes (classes defined inside other classes or functions).

    另外要注意,类定义必须出现在模块的最顶层,这意味着它们不能是嵌套的类(在其它类或函数中定义的类)。

    youdao

  • The protected modifier cannot be used for classes at package scope, but it can be used for nested classes.

    受保护的修饰符不能对包范围的类使用,但可以对嵌套的类使用。

    youdao

  • If a class has one or more private constructors and no public constructors, other classes (except nested classes) cannot create instances of this class.

    如果类具有一个或多个私有构造函数而没有公共构造函数,则其他类(除嵌套类外)无法创建该类的实例。

    youdao

  • If a class has one or more private constructors and no public constructors, other classes (except nested classes) cannot create instances of this class.

    如果类具有一个或多个私有构造函数而没有公共构造函数,则其他类(除嵌套类外)无法创建该类的实例。

    youdao

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

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

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