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
Q25: For a non-constant member function of class
Q26: Which of the following statements is false
Q27: Variables defined inside a member function of
Q28: The code fragment: Increment::Increment(int c, int i)<br>:
Q29: Static member functions:<br>A) Can use the this
Q30: If Americans are objects of the same
Q31: When composition (one object having another object
Q32: If a member function of a class
Q33: Member access specifiers (public and private) can
Q35: Which of the following statements is false