【java設計模式】之 單例(Singleton)模式

原文連接:http://www.itcodai.com/blog/29html 1. 單例模式的定義         單例模式(Singleton Pattern)是一個比較簡單的模式,其原始定義以下:Ensure a class has only one instance, and provide a global point of access to it. 即確保只有一個實例,並且自行實例化
相關文章
相關標籤/搜索