由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - singleton 中的 inner class
相关主题
问一下,DLL里面怎么调用外部类啊?[合集] which design pattern is used if a static variable insid
请教C#里property的意义如何同步多个程序同时读取一个文件
Global(static) variable initialization question请问关于c++实现singleton的问题?
[合集] singleton and static请问static variable init的问题?
The C++ questions I've been askedIs "Singleton" design pattern a type of "Factory method" de
[合集] can C++ constructor be private? the answer is YES!C++里最常用的design pattern都有哪些?
C++ Singleton Help最常见的OO Design Pattern是什么啊? (转载)
真屎的interviewA question about singleton
相关话题的讨论汇总
话题: singleton话题: class话题: inner话题: innerclass话题: 实例
进入Programming版参与讨论
1 (共1页)
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.

1 (共1页)
进入Programming版参与讨论
相关主题
A question about singletonThe C++ questions I've been asked
singleton question[合集] can C++ constructor be private? the answer is YES!
factory and abstract factory 的区别C++ Singleton Help
how to implement singleton without static variable?真屎的interview
问一下,DLL里面怎么调用外部类啊?[合集] which design pattern is used if a static variable insid
请教C#里property的意义如何同步多个程序同时读取一个文件
Global(static) variable initialization question请问关于c++实现singleton的问题?
[合集] singleton and static请问static variable init的问题?
相关话题的讨论汇总
话题: singleton话题: class话题: inner话题: innerclass话题: 实例