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
Develop a C++ program that uses a while to determine the gross pay (in Dollars) for each of several employees. The company pays “straight-time” for the first 40 hours worked by ea

A function f is defined by the rule that f(n) = n if 0≤n≤3 and f(n) = f(n - 1) + 2f(n - 2) + 3f(n - 3) if n> 3. (a) Write a procedure that computes f by means of a recursive pro

solution of problem based on poiter

To develop a web crawler such that when given a base URL, it will traverse the entire web tree and then build an index of keywords and what URL link they appear on.   The web crawl


F u nction Returning Object: This program is like to the previous program except the function returns object.  The main rule to be remembered is the function returning obj


The project will include Arena models (only .doe files) and MSWord document for the report. Thereport must contain the following sections: 1. Introduction: (a)    Statemen

What are the various types of control structures in programming? - Primarily there are 3 types of control structures in programming: Sequence, Selection and Repetition. - Se

Write a function that has four unsigned char parameters, combines the four one-byte integer values into an unsigned integer, and returns the unsigned integer. When the four one