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