public class Singleton { private static Singleton instance; ... 這裡面跑很了多code,建立物件需要花費很多資源} public static Singleton getInstance(){ // 第一 ...
確定! 回上一頁