Override should be used only on methods (not on classes, package declarations, or other constructs).
Override应该仅用于方法(不用于类、包声明或其他构造)。
Scala does not allow package declarations in scripts that are executed directly with the scala interpreter.
scala不支持在直接运行于scala解释器中的脚本里加入包的声明。
Annotations are modifiers you can add to your code and apply to package declarations, type declarations, constructors, methods, fields, parameters, and variables.
注释是可以添加到代码中的修饰符,可以用于包声明、类型声明、构造函数、方法、字段、参数和变量。
应用推荐