Scala lets you nest class declarations, like many object-oriented languages.
Scala和许多面向对象语言一样,允许你嵌套声明类。
You can use static assertions in global scope and inside namespaces, function bodies, or class declarations.
可以在全局范围以及在名称空间、函数体或类声明内使用静态断言。
Most changes to class declarations are not allowed by Edit and Continue while in Break mode.
当处于中断模式时,“编辑并继续”不允许对类声明的大多数更改。
While in Break mode, however, you are generally not allowed to change declaration statements, such as public methods, public fields, or class declarations.
但是,在中断模式下一般不允许对声明语句(如公共方法、公共字段或类声明)进行更改。
Class declarations are allowed only in the main program block, inside other classes, inside packages, or in functions.
只允许在主程序块、其他类、包或函数内部使用类声明。
Class declarations are allowed only in the main program block, inside other classes, inside packages, or in functions.
只允许在主程序块、其他类、包或函数内部使用类声明。
应用推荐