Each file begins with a simple declaration of what package it belongs to, and each file can import the packages it USES.
每个文件开头都会声明它属于哪一个包,每个文件也可以引入它所用到的包。
This is a Scala singleton because it USES the object declaration instead of a class declaration.
这是一个Scala单例(singleton),因为它使用对象声明,而不是类声明。
应用推荐