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
want to understand the working of structure and classes


write a program to solve e^x

I want MODI method''s coding in c++ using all concepts of c++..please help me its my project work...

At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers

write a program in c language to implement stacks in a single array

C Program for MAXIMUM NO, MINIMUM NO AND SORTING   void main() {           int i,j,t;           int a[5];           clrscr();           for(i=0;i

Memory management by c program: Write a program to memory management in c program unsigned max( unsigned, unsigned );   int BaseMemBlocks::allocBlock( size_t sz )

please answer the question of following Write a function that calculates the number of elapsed days between two dates. For example the days between Feb 3, 1970 and June 21, 1980? B

Sorted directory - C++ program: Write a program in c to sorting a directory. int main( int argc, char *argv[] ) {     if( argc 3 )         {         cerr