instance constructors 中文意思是什麼
instance constructors
解釋
實例構造函數- instance : n. 1. 事例,例證,實例,場合。2. 情況。3. 要求,建議。4. 【法律】訴訟手續。vt. 舉…為例,引以為例,舉例證明。
- constructors : 構造函數
-
Instance constructors are used to create and initialize instances
實例構造函數用於創建和初始化實例。 -
Instance constructors can also be used to call the instance constructors of base classes
也可以用實例構造函數來調用基類的實例構造函數。 -
For an instance field, in the instance constructors of the class that contains the field declaration, or for a static field, in the static constructor of the class that contains the field declaration
對于實例欄位,在包含欄位聲明的類的實例構造函數中;或者,對于靜態欄位,在包含欄位聲明的類的靜態構造函數中。 -
A reference type that encapsulates data constants and fields and behavior methods, properties, indexers, events, operators, instance constructors, static constructors, and destructors, and can contain nested types
一種引用類型,它封裝數據和行為,並可以包含嵌套類型,其中數據包括常數和欄位,行為包括方法、屬性、索引器、事件、運算符、實例構造函數、靜態構造函數和析構函數。 -
Use the constructors of derived classes to get an instance with different settings ; for example, the
使用派生類的構造函數來獲取帶有不同設置的實例。例如, -
Private constructors are used to prevent the creation of instances of a class when there are no instance fields or methods, such as the
類)時或者當調用方法以獲得類的實例時,私有構造函數可用於阻止創建類的實例。 -
For instance, parameterized constructors, static methods, and constant fields are not exposed to com clients
例如,參數化的構造函數、靜態方法和常數欄位不會向com客戶端公開。
分享友人