当创建类的新实例时,会自动调用constructors。

The constructors are called automatically when creating a new instance of the class.

点击显示答案

The constructors are called automatically when creating a new instance of the class.

constructors 是 constructor 的复数形式,constructor 由动词 construct(构建)加上名词后缀 -or 构成,表示"构建者"。 在编程语境中,constructor 特指"构造函数",即创建类实例时自动执行的初始化方法。constructors 在这里指代类中定义的所有构造函数。

在 App 中完整学习这张卡片

在 App 中学习