Overloading of destructor, C/C++ Programming

Is Overloading of Destructor possible?

Posted Date: 2/13/2013 1:34:12 AM | Location : United States





No.  You can have just only one destructor for a class Fred. It is always called Fred:: ~Fred (). It never takes any type of parameters, and it never returns anything.   

You can''t pass parameters to the destructor anyway, as you never explicitly call a destructor (well, almost never).

Posted by Edward | Posted Date: 2/13/2013 1:35:46 AM


Related Discussions:- Overloading of destructor, Assignment Help, Ask Question on Overloading of destructor, Get Answer, Expert's Help, Overloading of destructor Discussions

Write discussion on Overloading of destructor
Your posts are moderated
Related Questions


Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve betw

I want VLC Pitch Changing Addon Project Description: Required: Plugin to modify the pitch of running tracks in VLC without changing the speed. Skills required are C Progra


Run the following C++ program with and without preprocessor variable POSTFIX defined. #include using namespace std; extern "C" int atoi( const char *str );

processing two jobs through 2 machine

Semaphore is used to synchronize processes. whereas mutex is used to give synchronization among threads running in the similar process.

There are ''n'' ants on a ''n+1'' length rod. The ants are numbered from 1 to n and are initially placed at positions starting from position 1 till position n. They are moving eith

Four cells, each with an internal resistance of 0.40 ? and an e.m.f. of 2.5 V are connected in series to a load of 38.40 ?. (a) Verify the current flowing in the circuit and t