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
A: No. If they're utilized properly, they increase encapsulation. You frequently require splitting a class in half while the two halves will have distinct numbers of instances o

expression and its types with example programs

write a promgram using object oriented peramid

#an array that accept input and gives an output

Addition in a existing c++ unification algorithm Project Description: I have a existing code for a algorithm and need to add two modules into it, it is a unification algorith

in mobiles mumbers to alphabets

A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2


6999066263304447777077766622337778 -----> message sent by the first smuggler. my name is robert---------> message decoded by the second smuggler. Where ‘0’ denotes the "space".