Examlex

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;
}


Definitions:

Related Questions