constructor with default arguments
基本解釋
- [計(jì)算機(jī)科學(xué)技術(shù)]帶缺省參數(shù)的構(gòu)造函數(shù)
英漢例句
- The variables at the right with no corresponding constructor arguments are default constructed.
右邊那些沒(méi)有對(duì)應(yīng)的構(gòu)造函數(shù)參數(shù)的變量將被默認(rèn)構(gòu)造。 - However, there is one important difference between structures and classes: structures can have a default constructor (that is, one with no arguments) even if no primary constructor is defined.
但是,結(jié)構(gòu)和類之間有一個(gè)重要區(qū)別:結(jié)構(gòu)可以有默認(rèn)構(gòu)造函數(shù)(即,沒(méi)有參數(shù)的構(gòu)造函數(shù)),即使未定義主構(gòu)造函數(shù)也是如此。
雙語(yǔ)例句
專業(yè)釋義
- 帶缺省參數(shù)的構(gòu)造函數(shù)