用Singleton如何写设计模式
1 回答

慕仙森
TA贡献1827条经验 获得超8个赞
class Singleton {
private static Singleton instance=new Singleton();
private Singleton(){}
static Singleton getInstance() {
return instance;
}
}
- 1 回答
- 0 关注
- 907 浏览
添加回答
举报
0/150
提交
取消