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
What is the use of class in c++?
What is the difference between map and hashmap in c++?
What is the difference between a definition and a declaration?
which of the following is not an secondary constant a) array b) real c) union
Difference between delete and free.
Explain what are single and multiple inheritances in c++?
Can we use this pointer inside static member function?
Write about an iterator class?
What is c++ library?
Is c++ a float?
What do you mean by vtable and vptr in c++?
What is a static element?
Explain the static member function.
How many ways can a variable be initialized into in C++?
Will the following program execute?