派生類的構造 的英文怎麼說
中文拼音 [pàishēnglèidegòuzào]
派生類的構造
英文
constructing derived classes- 派 : 派構詞成分。
- 生 : Ⅰ動詞1 (生育; 生殖) give birth to; bear 2 (出生) be born 3 (生長) grow 4 (生存; 活) live;...
- 類 : Ⅰ名1 (許多相似或相同的事物的綜合; 種類) class; category; kind; type 2 (姓氏) a surname Ⅱ動詞...
- 的 : 4次方是 The fourth power of 2 is direction
- 構 : Ⅰ動詞1 (構造; 組合) construct; form; compose 2 (結成) fabricate; make up 3 (建造; 架屋) bui...
- 造 : Ⅰ動詞1 (做; 製作) make; build; create; produce 2 (假編) cook up; fabricate; concoct 3 [書面語...
- 構造 : structure; construction; constructional detail; tectonic; structural; makeup; anatomy; constituti...
-
For example, when a class is unsealed a developer can add a constructor to a type derived from the class, and use that constructor to initialize the base class properties to the values required for the scenario
例如,如果某個類是未密封的,則開發人員可以向從該類派生的類型添加一個構造函數,然後使用該構造函數將基類屬性初始化為所需的值。The constructor on each derived class is using its base class initializer
每個派生類的構造函數都使用其基類的初始值設定項。Use the constructors of derived classes to get an instance with different settings ; for example, the
使用派生類的構造函數來獲取帶有不同設置的實例。例如,Method must be called at the end of the constructor for derived classes to complete the initialization of the
給繼承者的說明必須在派生類的構造函數的末尾調用If you override the base class constructor, you should explicitly call it in the constructor of your derived class
如果重寫基類構造函數,則應在派生類的構造函數中顯式調用它。This constructor is called by derived class constructors to initialize state in this type
派生類構造函數調用此構造函數初始化該類型中的狀態。This constructor is called to initialize state in the type whenever an instance of the derived class is created
每當創建派生類的實例時,都會調用此構造函數以初始化類型中的狀態。At that point, the code in the constructor for the base class executes, followed by the code in each constructor in all derived classes and the code in the most derived classes is executed last
構造函數,直到到達基類的構造函數。此時,基類構造函數中的代碼執行,接著執行所有派生類中每個構造函數的代碼,最後執行最相近派生的類中的代碼。分享友人