Given the class definition:

class CreateDestroy
{
public:
CreateDestroy() { cout << "constructor called, "; }
~CreateDestroy() { cout << "destructor called, "; }
};

What will the following program output?

int main()
{
CreateDestroy c1;
CreateDestroy c2;
return 0;
}

a. constructor called, destructor called, constructor called, destructor called,
b. constructor called, destructor called,
c. constructor called, constructor called,
d. constructor called, constructor called, destructor called, destructor called,

d. constructor called, constructor called, destructor called, destructor called,

Computer Science & Information Technology

You might also like to view...

A(n) ________ server is a server used to fulfill one specific purpose

Fill in the blank(s) with correct word

Computer Science & Information Technology

In Google Drive, the ________ is the area on the screen that displays the current document for editing

A) insertion point B) work area C) toolbar D) menu bar

Computer Science & Information Technology