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

How do we implement inheritance in c++?

591


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

590


When you overload member functions, in what ways must they differ?

592


what are the events occur in intr activated on interrupt vector table

1182


Will c++ be replaced?

554






write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

1518


What is the arrow operator in c++?

562


What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0

585


What is the limitation of cin while taking input for character array?

1457


List the merits and demerits of declaring a nested class in C++?

611


What is the equivalent of Pascal's Real a) unsigned int b) float c) char

593


Explain the difference between class and struct in c++?

590


State the difference between delete and delete[].

581


How do I run a program in notepad ++?

608


List the features of oops in c++?

578