Solved

Given the Class Definition: Class CreateDestroy

Question 34

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