Change the private static Singleton obj in the class declaration to static Singleton obj[3], then 3 objects can be created.

old (HH)
(#133481@0)
2001-7-16 -05:00

回到话题: Can I write constructer as private in c++, if I can who can access it ? (This my interview question, continue)

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=133481