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 do you define/declare constants in c++?
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
What is an overflow error?
Is c++ proprietary?
What is lvalue?
Define stacks. Provide an example where they are useful.
What is private public protected in c++?
Explain how overloading takes place in c++?
What are the vectors in c++?
What is the difference between public, private, and protected access?
Is c++ a software?
Explain Memory Allocation in C/C++ ?
What is #include ctype h in c++?
write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;
What is a modifier in c++?