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
How does class accomplish data hiding in c++?
Which compiler does turbo c++ use?
Why is it necessary to use a reference in the argument to the copy constructor?
Write a C++ Program to check whether a number is prime number or not?
Explain the benefits of proper inheritance.
What is lambda expression c++?
Difference between an inspector and a mutator
What is searching?
How the programmer of a class should decide whether to declare member function or a friend function?
What is a .lib file in c++?
What are the advantages of c++?
what you know about c++?
What is c++ hash?
Which c++ operator cannot overload?
What is the default width for ouputting a long integer using the insertion operator?