p****d 发帖数: 2183 | 1 在一个singleton中有内部类,继承父类,那么这个singleton 中的 innerclass实例化
的时候也是singleton么?还是我可以在有多个这种innerclass的实例? | X****r 发帖数: 3557 | 2 singleton is a design pattern, not a language constraint. You make it
singleton, then it is. It really depends on why you sub-class the singleton
class in the first place.
【在 p****d 的大作中提到】 : 在一个singleton中有内部类,继承父类,那么这个singleton 中的 innerclass实例化 : 的时候也是singleton么?还是我可以在有多个这种innerclass的实例?
| p****d 发帖数: 2183 | 3 谢谢,我就是对内部类的初始化顺序有些疑问。
singleton
【在 X****r 的大作中提到】 : singleton is a design pattern, not a language constraint. You make it : singleton, then it is. It really depends on why you sub-class the singleton : class in the first place.
|
|