DesignPattern defined
所謂設(shè)計(jì)模式就是在某環(huán)境下解決某問題的解決方案知染。
應(yīng)用設(shè)計(jì)模式需要三個(gè)條件——context双吆、problem抑淫、solution胳搞。
context:是指一個(gè)綜合性的情景蹬竖。
problem:就是在該context下要達(dá)成的目標(biāo),它也指代在此context下的各種限制流酬。
solution:能夠解決這個(gè)problem的設(shè)計(jì)方案。