What does it mean to declare a destructor as static, C/C++ Programming

d) a "static destructor" is a static member function of the class which accepts one argument - a pointer to the object of that class to be cracked. It is probably utilized along with "a factory method", while there is requirement to limit the creation of instances of some class to free hold only and/or perform additional steps after or before creation of an object. Alike steps might need to be taken before and/or after destroy an instance.

 

Posted Date: 3/21/2013 7:39:42 AM | Location : United States







Related Discussions:- What does it mean to declare a destructor as static, Assignment Help, Ask Question on What does it mean to declare a destructor as static, Get Answer, Expert's Help, What does it mean to declare a destructor as static Discussions

Write discussion on What does it mean to declare a destructor as static
Your posts are moderated
Related Questions
Define Automatic storage classes - computer programming? The Variables declared within function bodies are automatic by default and automatic variables are declared inside a fu

Explain about the Integer constants in c language? An integer constant is the integer valued number and it refers to a sequence of digits. A decimal integer constant includes o

Description: Create a program that allows the user to track the hours an employee worked in a week. How much the employee was paid and any extra hours worked (overtime pay).

overloadstream insertion opertator to display the data of object on the console

Tell what the derived class inherits or doesn't inherit? A: Inherits: - All data member defined in the parent class (even though such members might not always be accessible

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome


Inheritance and Reuse Consider a car manufacturing company. When they require building a new car, they have two choices. They can start from the scratch, or they can change an

Determine the size of an interger data type without using sizeof() function? A: #include int main() { int *i ; int *j = i + 1; cout }

example of program to ad two numbers