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
What is copy constructor? describe the concept of copy constructor.

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

how to fill the blank spaces in the board of 4*4 matrix with the minimum of 4 colors and the condition is the adjacent element should not have the same colour

Write a function to determine whether a number is prime: it will return true if the input is prime and false otherwise. Use it to see whether -7 is prime.

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

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

#C Why don''t online compilers support the header file? What can I do to resolve this? PS. I have tried , does''nt work either. Thannk in advance.



This task involves char arrays and pointer based string handling. Which we use to make a simple encryption program, using a Caesar Cipher, Write a program that: a. Asks