singleton
英 /'sɪŋg(ə)lt(ə)n/美 /'sɪŋɡltən/
释义
n. 一个, 独生子, 独身
例句
Since there is only one singleton instance, any instance fields of a singleton will occur only once per class, just like static fields.
由于只有一个单实例,单例对象的域只会在一个类中出现一次,就像静态域一样。
英 /'sɪŋg(ə)lt(ə)n/美 /'sɪŋɡltən/
n. 一个, 独生子, 独身
Since there is only one singleton instance, any instance fields of a singleton will occur only once per class, just like static fields.
由于只有一个单实例,单例对象的域只会在一个类中出现一次,就像静态域一样。