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

If you don’t declare a return value, what type of return value is assumed?

549


What is virtual destructor? What is its use?

588


Define pointers?

617


how to connect with oracle 9i with server in socket program in c/c++

1857


Explain rethrowing exceptions with an example?

616






Do class declarations end with a semicolon? Do class method definitions?

628


How does java differ from c and c++?

554


Why do we need pointers?

591


What is a linked list in c++?

555


What is the difference between function overloading and operator overloading?

581


Can I learn c++ as my first language?

619


Define pre-condition and post-condition to a member function in c++?

673


Why do we use using namespace std in c++?

615


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2051


Program to check whether a word is a sub-string or not of a string typed

1607