Singleton Pattern
Singleton pattern is to make sure only 1 instance is created through entire project, it's applicable when object creation is complicated but 1 instance is enough, like tool class, property object or session, it can help avoid space waste.In total there a
原创
2021-10-30 19:44:31 ·
70 阅读 ·
0 评论