[CS101] Programming Languages and OOP 编程语言及面向对象基础题

2015-09-07
阅读 15 分钟
3.3k
What is singleton? What's its cons and pros? How to implement it?Definition: Singleton pattern is a design pattern that ensure that only one instance of a class is created and Provide a global access point to the object.