interview考singleton是比較普遍的現象。但是不正確的,它的考點和本意不符。隻能說明公司用pattern用得少。 singleton其實考察的還是oo,而不是pattern. pattern的考察,理論上應該靠dip,實踐上什麽都可以靠,singleton是last option.