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 can we check whether the contents of two structure variables are same or not?
What is encapsulation in c++ with example?
What are the uses of c++ in the real world?
What is the C-style character string?
What is class syntax c++?
what is C++ objects?
What are the manipulators in c++?
Is c++ low level?
Is c++ faster than c?
What is the oldest programming language?
Will c++ be replaced?
Is c++ a pure oop language?
What is a singleton class c++?
What does h mean in maths?
What is the need of a destructor?