Design Pattern理解碎片

滄海一滴發表於2014-04-07

 

開發封閉原則(Open-Closed Principle OCP)
Software entities(classes,modules,functions etc) should open for extension ,but close for modification.

對class的擴充套件是extend

 

相關文章