Constructor functions (also called constructors) provide the ability to design and implement your own prototype-based objects.
构造函数提供了一种能力,使用户能设计和实现自己的基于原型的对象。
We’ll see how to define auxiliary constructors in the section called “Constructors in Scala” in Chapter 5, Basic Object-Oriented Programming in Scala.
在《第5章 -Scala 的基本面向对象编程》的“Scala 的构造函数”章节中,我们会看到如何定义辅助的构造函数。
We’ll see how to define auxiliary constructors in the section called “Constructors in Scala” in Chapter 5, Basic Object-Oriented Programming in Scala.
在《第5章 -Scala 的基本面向对象编程》的“Scala 的构造函数”章节中,我们会看到如何定义辅助的构造函数。
应用推荐