logo

Crowdly

Browser

Add to Chrome

Given the class definition:   class CreateDestroy { public:  ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

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;

}

 

Which of the following statement is correct?

33%
0%
67%
0%
More questions like this

Want instant access to all verified answers on moodle.royalholloway.ac.uk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome