The Singleton In My Minds

Definition:Assure a Class has only one Instance and it provides a Public access. 1,  question:Why do we use singleton?  Answer: Sometimes we need only one object。For example,threadpool,cache,log objec
相關文章
相關標籤/搜索