.. include:: Exercise: Default Constructor (was: Arrays of Objects) ====================================================== .. contents:: :local: Description ----------- Download and (try to) compile the following code: .. literalinclude:: user-array.cpp :caption: :download:`user-array.cpp` Does it work? (No) C++, when arrays of objects (i.e. *instances of classes*) are created, the array members must be *initialized* |longrightarrow| their constructors are called. *Solution*: add a default constructor to ``class User``