what can you do with such a class? it only can be used as an encapsulated static functions set working on static members. In fact, it's not like a class, just a period of static codes, no, only some constants.

loafer (loafer)
. Private construtor is very useful when you want to transfer class object as a parameter
2001-7-16 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: Can I write constructer as private in c++, if I can who can access it ? (This my interview question, continue)

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论