Do we have private destructors?
Answers were Sorted based on User's Feedback
Answer / jack
No we cannot have private destructors and private
constructors.........
| Is This Answer Correct ? | 4 Yes | 23 No |
What is the best c++ compiler?
class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable
What is a c++ class?
What are the differences between new and malloc?
What do you mean by const correctness?
Should I learn c or c++ or c#?
Do you know the problem with overriding functions?
When a function is made inline. Write the situation where inline functions may not work.
What is friend class in c++ with example?
What is a local reference?
Is c++ double?
What is an explicit constructor?