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;
};
why it needs a copy ctor? why make copy constructor "protected"
所有跟帖:
• the interviewer said -吳用先生- ♂ (186 bytes) () 03/05/2009 postreply 12:31:48