constructor
美 [k?n?str?kt?r]
英 [k?n?str?kt?(r)] 
詞形變化
復(fù)數(shù):constructors
英漢雙解
1. | (尤指汽車或飛機(jī)的)建造者,制造者,建造商a person or company that builds things, especially cars or aircraft |
英漢解釋
英英解釋
例句
The constructor function has no parameters and returns an instance of the type with all of its attributes set to null values.
構(gòu)造函數(shù)沒有參數(shù),并且返回的類型實(shí)例中的所有屬性都為空。
Constructor, where the name of each value is converted to a string, and the ordinal setting represents a one-up value for each setting.
構(gòu)造函數(shù)中,在這里,每個(gè)值的名稱都被轉(zhuǎn)換成一個(gè)字符串,并且序數(shù)設(shè)置表示了每個(gè)設(shè)置的優(yōu)先值。
This version of the constructor allows you to specify the group to which an item belongs.
此版本的構(gòu)造函數(shù)允許您指定項(xiàng)所屬的組。
The * at the end of the CONSTRUCTOR production signifies that there can be zero or more occurrences of that production.
CONSTRUCTOR產(chǎn)品尾部的*意味著該產(chǎn)品可以不存在,也可以存在更多。
Unlike destructors , it is often the case that something done inside a constructor might throw an exception.
與析構(gòu)函數(shù)不同,構(gòu)造函數(shù)內(nèi)部所做的事情經(jīng)常會(huì)拋出異常。
The best way to make sure this doesn't happen is to initialize variables where you declare them instead of in the body of every constructor.
確保這些不會(huì)發(fā)生的最好的方法是在聲明變量的時(shí)候就初始化,而不是在每個(gè)構(gòu)造函數(shù)中進(jìn)行初始化。
The programming language compiler added a default static constructor to your type and did not make it private.
編程語言編譯器已向您的類型中添加默認(rèn)靜態(tài)構(gòu)造函數(shù),但未將其設(shè)置為私有。
Notice that this constructor takes the $idsadmin object as a parameter and stores it in its own $idsadmin class variable.
注意,這個(gè)構(gòu)造函數(shù)使用$idsadmin對象作為參數(shù)并將它保存在自己的$idsadmin類變量中。
This constructor returns a value, however, which means that this value takes the place of the regular Object, which itself is thrown away.
但是,這個(gè)構(gòu)造函數(shù)返回一個(gè)值,這意味著這個(gè)值取代常規(guī)的Object,而后者將被拋棄。
Any constructors that you define for structures must have at least one argument so that they do not conflict with the default constructor.
為結(jié)構(gòu)定義的任何構(gòu)造函數(shù)都必須至少有一個(gè)參數(shù),以便不會(huì)與默認(rèn)構(gòu)造函數(shù)沖突。
A static constructor is used to initialize any static data, or to perform a particular action that needs to be performed once only.
靜態(tài)建構(gòu)函式可以用來初始化任何靜態(tài)資料,或執(zhí)行只需執(zhí)行一次的特定動(dòng)作。
You defined a static constructor for your type and did not make it private.
您定義了類型的靜態(tài)構(gòu)造函數(shù),但未將其設(shè)置為私有。
Which passes the name of the file containing the public key as a parameter to its constructor.
它將包含公鑰的文件的名稱作為參數(shù)傳遞至其構(gòu)造函數(shù)。
This constructor allows you to specify the local IP address and port number on which to listen for incoming connection attempts.
此構(gòu)造函數(shù)允許指定本地IP地址和用于偵聽傳入的連接嘗試的端口號(hào)。
A constructor is just a special method that creates an instance (or object) of a particular class.
構(gòu)造函數(shù)只是創(chuàng)建特定類實(shí)例(或對象)的特殊方法。
The caller of this constructor is required to ensure that this string has been localized for the current system culture.
此構(gòu)造函數(shù)的調(diào)用方需要確保此字符串已針對當(dāng)前系統(tǒng)區(qū)域性進(jìn)行了本地化。
Property gets a value indicating whether the field can only be set in the body of the constructor.
屬性獲取一個(gè)值,該值指示此字段是否只能在構(gòu)造函數(shù)的主體中設(shè)置。
The class itself provides no benefits: it has no fields, no constructor (besides the autogenerated one from Java), and no state.
類本身不提供任何效益:它沒有字段,沒有構(gòu)造函數(shù)(除了Java自動(dòng)生成的),沒有狀態(tài)。
Constructor provides the name for the Class and initializes the properties which can be different in every instance of the Class.
構(gòu)造器會(huì)為類提供一個(gè)名稱,和初始化每一個(gè)類的實(shí)現(xiàn)的屬性。
The user has no control over when the static constructor is called.
用戶不能控制何時(shí)調(diào)用該靜態(tài)構(gòu)造函數(shù)。
Thus, by declaring the variables with this type, you can directly assign the result of a constructor call to the corresponding variable.
這樣,通過聲明這種類型的變量,可以直接把構(gòu)造函數(shù)調(diào)用的結(jié)果分配給對應(yīng)的變量。
To maintain better performance, do not set the size of a control in its constructor.
若要保持更好的性能,請不要在控件構(gòu)造函數(shù)中設(shè)置控件的大小。
In the case of the code I've been using for this article, there's a major error in the interaction between the two loops in the constructor.
對于我在本文中用到的代碼,構(gòu)造函數(shù)中兩個(gè)循環(huán)之間的相互作用中存在一個(gè)重大錯(cuò)誤。
Traits don't support auxiliary constructors, nor do they accept an argument list for the primary constructor, the body of a trait.
Traits不支持輔助構(gòu)造函數(shù),它們也不支持在主構(gòu)造函數(shù),trait的主體里的參數(shù)列表。
An empty public constructor serves no purpose. Such a constructor need not be defined at all.
一個(gè)空的公有構(gòu)造體沒有用處,這樣一個(gè)構(gòu)造體完全不需要被定義。
Control automatically calls the default constructor of a business object to create and instance of it using reflection.
控件自動(dòng)調(diào)用業(yè)務(wù)對象的默認(rèn)構(gòu)造函數(shù),以使用反射創(chuàng)建該對象的實(shí)例。
Upon insertion of the highlighted record in table "wells" , the insert trigger calls the point constructor and the transform function.
在“wells”表中插入突出顯示的記錄時(shí),插入觸發(fā)器調(diào)用點(diǎn)構(gòu)造函數(shù)和轉(zhuǎn)換函數(shù)。
This shouldn't come as a surprise since the name of the constructor function is effectively the name of the class.
這不應(yīng)當(dāng)讓人感到吃驚,因?yàn)?/c>構(gòu)造函數(shù)的名稱實(shí)際上是類的名稱。
Constructor is called for that culture, and the creation process is time consuming.
構(gòu)造函數(shù)時(shí)創(chuàng)建,創(chuàng)建過程非常耗時(shí)。
This behavior is referred to in the DI world as constructor injection, because the instance is passed through one of the constructors.
這個(gè)行為在DI世界中稱作構(gòu)造函數(shù)注入,因?yàn)?/c>實(shí)例是通過一個(gè)構(gòu)造函數(shù)傳遞的。
As you saw earlier, the code for a static field initializer executes inside an implicit type constructor.
正如您在前面看到的那樣,靜態(tài)字段初始值設(shè)定項(xiàng)的代碼在隱式類型構(gòu)造函數(shù)的內(nèi)部執(zhí)行。
If the class has no default constructor, then the class may not be used in these contexts .
如果類沒有默認(rèn)構(gòu)造函數(shù),則該類就不能用在這些環(huán)境中。
The only way to set such a field is through the exception constructor.
設(shè)置這樣一個(gè)字段的惟一方法就是通過異常構(gòu)造器(exceptionconstructor)。
Notice how the constructor of this class takes in a com. ibm. collaboration. realtime. messages. MessageHandler object as a parameter.
需注意此類的構(gòu)造函數(shù)使用com.ibm.collaboration.realtime.messages.MessageHandler對象作為參數(shù)的方式。
Constructor allows you to keep the linked list for the map in access order, from least recently used to most recently used.
構(gòu)造函數(shù)使您能夠保持映射表的鏈表的存取順序,從使用時(shí)間距今最遠(yuǎn)的到最近使用的。
By the time the body of the constructor begins executing, initialization is complete.
在開始執(zhí)行構(gòu)造函數(shù)的函數(shù)體之前,要完成初始化。
This type actually defines the signature of a constructor for the specified class and a matching sequence of values.
該類型實(shí)際定義了指定用于類和值的匹配序列的構(gòu)造器的簽名。
The default constructor has no arguments; its implementation calls the base class constructor.
默認(rèn)的構(gòu)造函數(shù)沒有參數(shù);其實(shí)現(xiàn)將調(diào)用基類構(gòu)造函數(shù)。
Constructor is displayed by a visual designer when you access the property, event, or extender to which the attribute applies.
當(dāng)訪問該屬性所應(yīng)用于的屬性、事件或擴(kuò)展程序時(shí),可視化設(shè)計(jì)器將顯示在。
A copy constructor was not accessible in a base class and was therefore not generated for a derived class.
不可訪問基類中的復(fù)制構(gòu)造函數(shù),因此無法為派生類生成復(fù)制構(gòu)造函數(shù)。