
n.[生]總綱;超類
Through the use of inheritance, programmers can reuse the code in the superclass many times. 經(jīng)過(guò)繼承的使用,程序設(shè)計(jì)者能許多次重復(fù)使用總綱的碼。
However, subclasses are not limited to the state and behaviors provided to them by their superclass. 然而,亞綱沒(méi)被限制在狀態(tài)和對(duì)他們被他們的總綱提供的行為。
Name subclasses in your hierarchies by prepending on an adjective to the superclass name. 在超類名字前加上內(nèi)容命名你層次中的子類。