superclass
美
英 
- n.【生】總綱
- 網(wǎng)絡(luò)超類;父類;父類別
詞形變化
復(fù)數(shù):superclasses
英漢解釋
英英解釋
例句
Since an instance of a subclass is an instance of your superclass, you could find multiple instances of the singleton.
由于子類的實(shí)例也是單例類的實(shí)例,所以可能出現(xiàn)多個(gè)單例實(shí)例并存的情況。
An attempt was made to reuse an existing method name from a superclass, and the signatures did not match.
試圖重用超類現(xiàn)有的方法名稱,而簽名不匹配。
Two other refactorings, Push Down and Pull Up, move class methods or fields from a class to its subclass or superclass, respectively.
還有兩個(gè)重構(gòu)工具,PushDown和PullUp,分別實(shí)現(xiàn)將類方法或者屬性從一個(gè)類移動(dòng)到其子類或父類中。
Because a superclass is not referenced as frequently as a sublcass the names do not have to be as concise.
由于超類不會(huì)像子類那樣被頻繁引用,對(duì)子類的命名就不必考慮太多簡(jiǎn)潔的因素。
However, the subclass leaves the concrete class as is and does not attempt to instantiate the superclass.
子類沒有對(duì)具體的方法做改變,也沒有試圖實(shí)例化超類。
Similarly, a subclass destructor must call its superclass destructor after it has completed its own resource reclamation.
類似地,子類析構(gòu)函數(shù)在它完成其資源釋放之后,也要調(diào)用基類的析構(gòu)函數(shù)。
According to this principle, the ability to substitute a subclass object for a superclass object is characteristic of good design.
此原則表明,子類對(duì)象對(duì)超類對(duì)象的替代能力是優(yōu)秀設(shè)計(jì)的重要標(biāo)志。
So before an object is created, another object of the same class or of its superclass must be constructed.
所以在創(chuàng)建對(duì)象之前,必須構(gòu)造相同類或其超類的另一個(gè)對(duì)象。
Likewise, you almost always call a superclass method at either the start or end of a descendent method body.
同樣,您幾乎總是在子代方法主體的開始或結(jié)束部分調(diào)用超類方法。
Eclipse writes the superclass automagically with its new methods and alters the sibling classes to use the new superclass.
Eclipse將使用其新方法自動(dòng)編寫超類,然后更改兄弟類,使之使用新的超類。
In the object-oriented version, I extracted duplicated methods, moving them to a superclass along with a protected field.
在面向對(duì)象版本中,我提取了復(fù)制的方法,將其連同protected字段移到一個(gè)超類中。
After the @implementation keyword, we see the name of the class (Employee) and its superclass.
在@implementation關(guān)鍵字后面,我們看到了類名(Employee)及其超類。
Qualified subclass name: Name subclasses to communicate the similarities and differences with a superclass.
子類名稱要合格:對(duì)子類的命名會(huì)表述出其與超類之間的相似和差異之處。
an additional first parameter must be specified as the class for which the method calling the superclass selector is defined.
當(dāng)然,第一個(gè)參數(shù)是額外的,我們必須用它指定調(diào)用方法所屬的類。
Superclass and humanization are two outstanding characters of the state theory of democratic socialism.
超階級(jí)性和人性化是民主社會(huì)主義國(guó)家觀的兩個(gè)顯著特征。
Another difference you'll notice are several radio buttons and a checkbox for selecting the superclass.
您還會(huì)注意到的另一個(gè)差別是有多個(gè)單選按鈕和一個(gè)用于選擇父類的復(fù)選框。
That article is the single best resource that I've seen for understanding how the superclass works.
那篇文章是我見過的關(guān)于理解超類如何運(yùn)行的最好的資源。
A method of a superclass can be extended by declaring an attribute with the same name.
超類的方法可以通過使用相同的名稱聲明屬性來擴(kuò)展。
Fields are protected fields that the detector inherits from its superclass.
字段是檢測(cè)器從其父類繼承的protected字段。
Subclasses provide specialized behaviors from the basis of common elements provided by the superclass .
亞綱提供來自由總綱提供的通常元件的基專門的行為。
The best remedy in this case is to move those referenced fields to the superclass, too.
這種情況下,最好的補(bǔ)救辦法就是將這些被引用的字段也移到這個(gè)超類中。
Gets or sets a value indicating whether recursive enumeration is requested into all classes derived from the specified superclass.
獲取或設(shè)置一個(gè)值,該值指示是否將遞歸枚舉請(qǐng)求到從指定的超類派生的所有類中。
Make sure that Constructors from superclass is checked and that the superclass is java. lang. Exception (Figure 46).
確保選中了Constructorsfromsuperclass,并且超類是java.lang.Exception(圖46)。
Classes usually constitute a taxonomic hierarchy (a subclass-superclass hierarchy).
類通常包括一個(gè)分類層次(一個(gè)子類-超類層次)。
Notice that because both of the extracted methods use the number member variable, it is dragged into the superclass.
注意,因?yàn)?/c>兩個(gè)提取方法都使用number成員變量,所以要涉及到超類。
Notice that we use the method findViewById (defined in the superclass Activity) to get a handle on various UI elements.
注意,我們使用findViewById方法(在Activity子類中定義)獲得不同UI元素的句柄。
After a script has been created, it retains the reference to the default superclass as its own helper superclass.
當(dāng)創(chuàng)建完一個(gè)腳本以后,它保留著默認(rèn)超類的參考,就好象是它自己的助手參考一樣。
The requirement for this common superclass is driven by the need for interception.
對(duì)這一公用超類的要求源自截獲需要。
Subclasses inherit the public behavior of their superclass.
子類繼承它超類的所有公共行為。
We cannot resort to macros because the internal representation of the superclass is not available for the macros to reference.
我們無法用宏來實(shí)現(xiàn),因?yàn)?/c>父類的內(nèi)部具體實(shí)現(xiàn)對(duì)于我們要引用的宏是不可見的。
Kent discusses how to come up with a good name for a superclass.
Kent討論了如何為超類起一個(gè)好名字。
If you want to use the custom component in a JSF 1. 1-based application, the superclass of the tag handler must be UIComponentTag.
如果希望在基于JSF1.1的應(yīng)用程序中使用此自定義組件,則標(biāo)記處理程序的超類必須是UIComponentTag。
Type the first character of user helper superclass name in Select default helper superclass for the script.
在為腳本選擇默認(rèn)的helpersuperclass之中輸入用戶helper名的首字符。
Recall that every Java class constructor must call a constructor of the superclass.
每個(gè)Java類構(gòu)造函數(shù)都必須調(diào)用超類的構(gòu)造函數(shù)。
A class or interface could not be loaded because it would be its own superclass or superinterface.
類或接口由于是自己的超類或超接口而不能被裝入。
Similarly, the bicycle class is the superclass of mountain bikes, racing bikes, and tandems .
同樣地,腳踏車類別是山腳踏車的總綱,空轉(zhuǎn)腳踏車,和匯接。
From there, you can add the name and superclass.
可以在這里添加名稱和超類了。
You can alleviate this somewhat by having an abstract superclass that contains empty implementations of all methods for all visitors.
您可以使用一個(gè)抽象超類,在其中包含所有訪問者的所有類的空實(shí)現(xiàn),從而略微緩解難度。
Method, I also override this method to store the value, calling the superclass to complete default behavior.
方法設(shè)置,所以我覆蓋了這個(gè)方法以存儲(chǔ)這個(gè)值,調(diào)用超類以完成默認(rèn)的行為。
Manual propagation to less specific multimethods can get tricky in many of the same ways that calls to superclass methods can get tricky.
調(diào)用超類方法的許多方式很棘手,而以同樣方式對(duì)較為不特定的多元法所進(jìn)行的手工傳播也會(huì)很棘手。