How many destructors may a class contain? What is the main purpose of the destructor? When is this function called and who may call it?

What will be an ideal response?


The class may have only one destructor function. Its job is to take care of any business for the object before it goes out of scope, such as closing files, releasing memory, etc. The operating system automatically calls it when the object is going out of scope.

Computer Science & Information Technology

You might also like to view...

The ____ filters reshape images not by recoloring pixels, but by moving pixels in a geometric fashion to create 3D and reshaping effects.

a. Sketch b. Blur c. Texture d. Distort

Computer Science & Information Technology

Match the following Split Form properties to their meanings:

I. Split Form Size II. Split From Orientation III. Split Form Splitter Bar IV. Split Form Datasheet V. Split Form Printing VI. Save Split Bar Position A. Define where the datasheet displays (above, below, left, or right) B. Sets the form to open in the same position in which it was saved C. Defines which section of the form is printed D. Allows resizing of the two separate sections E. Allows editing of the form's source in the datasheet section F. Specifies an exact height or width for the form section of the split form

Computer Science & Information Technology

The ________ is the value of an asset at the end of its useful life

Fill in the blank(s) with correct word

Computer Science & Information Technology

Macromedia Director stores multimedia elements in its:

a. Stage b. Cast c. Score d. Sprite e. Lingo

Computer Science & Information Technology