Arquivado
Este tópico foi arquivado e está fechado para novas respostas.
Exercise 7
5 votos
-
1. You need to keep an eye on the existing number of objects of a given class without introducing a on-class member variable. Which of the following makes this happen?
-
A. Add member variable that gets incremented in the default constructor and decremented in the destructor.1
-
B. Add local variable that gets incremented in the each constructor and decremented in the destructor.0
-
C. Add static member variable that gets incremented in the each constructor and decremented in the destructor.4
-
D. This cannot be accomplished since the creation of objects is being done dynamically via "new".0
-