单例模式

https://blog.csdn.net/suoxd123/article/details/103640967 /xiaohanxixi/p/13197362.html 单例类实现机制 核心思路:构造函数私有化+在类内部做类自己的静态声明 两种实现方式
posted @ 2023-02-13 09:36  回首起了风沙  Views(1)  Comments(0Edit  收藏  举报