the only side effect I know of is that if you declare a virtual function , the calss size will be increased(probably by 4) , because the compiler has to insert a virtual table pointer in the class.

numnum (numnum)

2001-7-5 -04:00

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

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