why it needs a copy ctor? why make copy constructor "protected"

來源: 2009-03-05 11:50:35 [博客] [舊帖] [給我悄悄話] 本文已被閱讀:

I had a interview before?

my answer was just the same as yours. I passed.

it's something like the one below: (something wrong????)

class Singleton {
public:
static Singleton* Instance();
static proof(void);
protected:
Singleton();
private:
static Singleton* _singleton;
};