numnum is right

frank2001 (mouse)
You can create only ONE instance of the class by using private constructor. And in Design Patten, this is called Singleton Class.

2001-7-6 -04:00

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

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