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
Write a program that predicts users’ age (0-128 years old) with at most 7 questions. The game starts with asking the user whether he/she is younger or older than G (an initial gues

how can I find the GCD of 2 given numbers using Euclidean Algorithm ?

algorithm to prepare mark sheet of a student by inputing name,branchcode,semester,register no,5 marks of students and total mark of student

1.1 A Few Notes: 1. Please test your program with various inputs prior to submission. 2. All group members must understand the entire project for interactive grading. Equal

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 of packets with thes

Introduction. In this assignment you are required to revisit the Assignment 1 topic. You will develop a new program which is more sophisticated, in particular, adding more functio

Are comments included during compilation stage and placed in EXE file as well? - No, comments encountered by compiler are disregarded. - Their only purpose is ease and guida

Explain the Macros? Preprocessor' is a translation stage that is applied to your source code before the compiler proper gets its hands on it. Usually the preprocessor performs

Implement a menu driven real estate catalogue system that allows users to perform various catalogue maintenance and search tasks.  You are only allowed to use the C programming la

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve betw