请注意,原始程序码中没有预设建构函式。
Notice that there is no default constructor in the source code.
空的建构函式宣告防止自动产生预设建构函式。
The declaration of the empty constructor prevents the automatic generation of a default constructor.
否则,新项目也可以透过其公用预设建构函式自动建立。
Otherwise, the new item is automatically created through its public default constructor.
如果您为动态型别定义了建构函式,则不会提供预设建构函式。
If you define a constructor for your dynamic type, a default constructor is not provided.
如果类别没有任何的建构函式,则会自动产生预设建构函式,而预设值会用于初始化栏位。
If a class does not have a constructor, a default constructor is automatically generated and default values are used to initialize the object fields.
该型别针对其值不一定支援属性语法,也不一定支援物件项目语法(需要该型别上的预设建构函式)。
That type may or may not support attribute syntax for its values, or may or may not support object element syntax (which requires a default constructor on that type).
如果您没有为动态型别定义建构函式,便会自动提供一个预设的建构函式,而且它会呼叫基底类别的预设建构函式。
If you do not define a constructor for your dynamic type, a default constructor is provided automatically, and it calls the default constructor of the base class.
当您使用物件初始设定式来建立具名型别的执行个体时,会呼叫类别的预设建构函式,接著按照您指定的顺序初始化指定的成员。
When you use an object initializer to create an instance of a named type, the default constructor for the class is called, followed by initialization of designated members in the order you specify.
当阵列在建构函式的成员初始设定清单中时,阵列元素将预设为初始化。
When an array is in a constructor's member initialization list, the elements of the array will be default initialized.
当阵列在建构函式的成员初始设定清单中时,阵列元素将预设为初始化。
When an array is in a constructor's member initialization list, the elements of the array will be default initialized.
应用推荐