Do we have private destructors?

Answer Posted / vishwa

we cannot say it destructors are not private. because for
empty class if we use delete operator then it is going to
delete the destructor which is private.

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between prefix and postfix versions of operator++()?

585


Is c++ a software?

716


What is the cout in c++?

543


Is java made in c++?

573


Why is c++ still used?

593






which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

707


Is java a c++?

550


Define whitespace in C++.

742


Describe the process of creation and destruction of a derived class object?

634


What are the uses of static class data?

626


How the endl and setw manipulator works?

547


What are shallow and deep copy?

586


Can we use struct in c++?

580


What is the best way to declare and define global variables?

690


Which bit wise operator is suitable for turning off a particular bit in a number?

636