常見(jiàn)例句A single constructor, which is private and parameterless. 一個(gè)簡(jiǎn)單的私有并無(wú)參的構(gòu)造器。In addition, you can specify that a type must have a parameterless constructor. 另外,可以指定類(lèi)型必須有無(wú)參數(shù)的構(gòu)造函數(shù)。Parameterless functions do not need the parenthesis, thus a typical field get method can resemble a field reference. 無(wú)參數(shù)函數(shù)不需要括號(hào),于是域的典型方法get方法看起來(lái)就像域引用一樣。A type can be substituted for the generic type parameter only if it has a parameterless constructor. [本主題是預(yù)發(fā)布的文檔,在將來(lái)發(fā)布的版本中可能會(huì)有更改??瞻字黝}是為將來(lái)預(yù)留的。Specifically, it will be impossible if the superclass does not provide an accessible parameterless constructor. 特別地,如果超類(lèi)沒(méi)有提供一個(gè)可訪(fǎng)問(wèn)的、無(wú)參數(shù)的構(gòu)造函數(shù)的話(huà),那么子類(lèi)要做到可系列化是不可能的。A constraint list on a type parameter can specify that the type argument passed to that type parameter must expose a parameterless constructor that the creating code can access. 類(lèi)型參數(shù)上的約束列表可指定:傳遞給該類(lèi)型參數(shù)的類(lèi)型變量必須公開(kāi)創(chuàng)建代碼可訪(fǎng)問(wèn)的無(wú)參數(shù)構(gòu)造函數(shù)。 返回 parameterless