Given the class definition:
class CreateDestroy
{
public:
CreateDestroy() { cout << "constructor called, "; }
~CreateDestroy() { cout << "destructor called, "; }
};
What will the following program output?
int main()
{
for ( int i = 1; i <= 2; ++i )
CreateDestroy cd;
return 0;
}
a. constructor called, destructor called, constructor called, destructor called,
b. constructor called, constructor called,
c. constructor called, constructor called, destructor called, destructor called,
d. Nothing.
a. constructor called, destructor called, constructor called, destructor called,
You might also like to view...
When a(n) ________ style error alert is used, the user will be able to enter data even if it violates the data validation rule
Fill in the blank(s) with correct word
A(n) ________ is a note to a collaborator containing questions or suggestions about the workbook
Fill in the blank(s) with correct word
The text in my document has pink and yellow stripes behind it, what's going on?
What will be an ideal response?
You can change an image's height and width by changing options on the Appearance tab in the ____________________ dialog box.
Fill in the blank(s) with the appropriate word(s).