Solved

Given the Class Definition

Question 29

Multiple Choice

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,

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions