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
In this project, you will write a software for the Registrar's office of a university called YouOIT to maintain information about students and courses at the university. The reg


write a C program that can display the transpose form of a ciphertext matrix.

C Program for MULTIPLICATION TABLE   main() {           int a, b=1, c, d;           char ch;           clrscr();           while(ch!='n')           {


limitation of function

A: In C++ the access privileges are public, private and protected. The default access level assigned to members of a class is private. Private members of any class are accessible o

The STL details are described in many places online (see the CS377 webpage for some links), and there's a very quick introduction in Section A.14. Here are just a few additional no

question c

Goal: Design a program that computes square matrix multiplication on GPU using CUDA. Write the code in C. In particular, your implementation should obey the following requiremen