Do we have private destructors?

Answer Posted / vaibhav meena

We can have Private Destructor and by using Friend Function
we can also instantiate it. :)

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by vtable and vptr in c++?

619


what does the following statement mean? int (*a)[4]

617


How can you tell what shell you are running on unix system?

635


what is c++

1793


What is vector pair in c++?

709






What are stacks?

605


What is #include cmath?

657


Why do we use structure in c++?

570


Who created c++?

571


How do you declare a set in c++?

530


What is the difference between an enumeration and a set of pre-processor # defines?

826


Why we use #include conio h in c++?

591


What are compilers in c++?

601


What are protected members in c++?

616


Write a Program for find and replace a character in a string.

550