primary constructor
主构造函数
以上为机器翻译结果,长、整句建议使用 人工翻译 。
youdao
It calls the primary constructor with Nil (which represents an empty List object).
它调用主构造函数,并且传入Nil (Nil表示了一个空的List对象)。
Scala distinguishes between a primary constructor and zero or more auxiliary constructors.
Scala可以区分主构造函数和0个或多个辅助构造函数。
应用推荐
模块上移
模块下移
不移动