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:

Verified
Correct Answer:
Verified
Q13: A default constructor:<br>A) Is a constructor that
Q15: Every object of the same class:<br>A) Gets
Q17: A client changing the values of private
Q20: A default constructor has how many parameters?<br>A)
Q24: Which of the following statements is false?<br>A)
Q26: When a client code programmer uses a
Q28: The assignment operator =) can be used
Q28: The compiler will implicitly create a default
Q30: In the UML, the top compartment of
Q30: A header file is typically given the