在Effective Java 裡面有提到一個原則:「優先考慮靜態類別」(Favor static classes over nonstatic)。意思是說,在底下的範例裡面,若情況 ...
確定! 回上一頁