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

來源: 戲雨飛鷹 2009-03-05 11:50:35 [] [博客] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (356 bytes)
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;
};

所有跟帖: 

the interviewer said -吳用先生- 給 吳用先生 發送悄悄話 (186 bytes) () 03/05/2009 postreply 12:31:48

ok. -戲雨飛鷹- 給 戲雨飛鷹 發送悄悄話 戲雨飛鷹 的博客首頁 (0 bytes) () 03/05/2009 postreply 12:40:14

請您先登陸,再發跟帖!

發現Adblock插件

如要繼續瀏覽
請支持本站 請務必在本站關閉/移除任何Adblock

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”