Need some help with constructor
- by mousey
you have a class A, where you set ctor to be private, so a client can't call
"A a;"
to create obj on stack.
But someday another developer add a new ctor:
"A(int)"
and try to call "A a(1);" inside main(). So this will create a obj on stack. How do you prevent that?