COP 3330 FSU Exam 1 | Questions with 100% Correct Answers | Updated & Verified
A class destructor a) may have any number of parameters b) must be paired with each constructor for the class c) will be created automatically if none is supplied by the programmer d) is responsible for de-allocating resources when an object goes out of scope e) is called by operator new f) is called by operator delete g) must be supplied with the class if a constructor is also supplied h) is called multiple times by an operator delete [] - will be created automatically if none is supplied by the programmer is responsible for de-allocating resources when an object goes out of scope is called by operator delete is called multiple times by an operator delete [] Consider the following function prototype: void Funky (const int * a, size_t size); and suppose your have a client program with an array declared as follows:
Geschreven voor
- Instelling
- COP 3330 FSU
- Vak
- COP 3330 FSU
Documentinformatie
- Geüpload op
- 4 juni 2023
- Aantal pagina's
- 19
- Geschreven in
- 2022/2023
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden
Onderwerpen
-
cop 3330 fsu exam 1