{
firstclass();
public:
static firstclass& GetInstance()
{
static firstclass ins;
return ins;
}
};
class secondclass
{
secondclass();
public:
static secondclass* GetInstance()
{
static secondclass ins;
return &ins;
}
};
firstclass´Â Æ÷ÀÎÅ͸¦ »ç¿ëÇÏÁö ¾Ê°í ÁÖ¼Ò°ªÀ» ¹Þ´Â ¹æ½Ä
secondclass´Â Æ÷ÀÎÅ͸¦ »ç¿ëÇÏ´Â ¹æ½Ä
À̶ó°í ½áÀÖ±ä Çϴµ¥
firstclassÇغôµ¥ ÁÖ¼Ò°ª ¾È¹Þ°í ±×³É °ªÀ» ¹Þ³×¿ä
ÇÔ¼öÇü¿¡ & ºÙ´Â°É óÀ½ º¸´Â°Í°°Àºµ¥
Ȥ½Ã ¾Æ½Ã´ÂºÐ °è½Å°¡¿ä?
Àâ´ã | 1352¸íÀÌ Àоú¾î¿ä. 18.116.42.233