動機 :
該類別有太多Responsibility造成類別程式碼過多或是該類別和別類別互動太頻繁造成類別間couple tightly.
方式:
如果移出的方法需要用到原本類別的屬性,可考慮下列4種方式
(1)將該屬性和方法一起移出

avseq 發表在 痞客邦 留言(0) 人氣()

1.A design decision that is reasonable and correct one week can become incorrect in another.That is not a problem;the only problem is not to do something about it.

avseq 發表在 痞客邦 留言(0) 人氣()

1
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。