Answer Posted / guest
RE: #1
You can have private constructors. It's pretty common
practice when you create a class which you want to never be
constructed with "new" from outside the class (for example,
if you have a static factory member of the class).
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
Where are setjmp and longjmp used in c++?
What are static variables?
What is c++ similar to?
Why do we use constructor?
Mention the storage classes in c++.
What is difference between n and endl in c++?
What does h mean in maths?
Is c++ low level?
Can we define function inside main in c++?
What is buffering in c++?
Can we make copy constructor private in c++?
What are enumerations?
What is scope resolution operator in c++ with example?
Is it possible to use a new for the reallocation of pointers ?
What is singleton class in c++?