用Singleton如何寫設計模式
1 回答

慕仙森
TA貢獻1827條經驗 獲得超8個贊
class Singleton {
private static Singleton instance=new Singleton();
private Singleton(){}
static Singleton getInstance() {
return instance;
}
}
- 1 回答
- 0 關注
- 922 瀏覽
添加回答
舉報
0/150
提交
取消