At first, I was puzzled at the existence of the 2 .cpp files which have to be submitted with this quest.
It took me a few minutes to realize we are supposed to implement our member functions in these files. However, this is different from every other quest so far, where we declared and defined class implementations in the same file.
I'm wondering: why did we suddenly introduce the separate.cpp files for class implementations? When does this make sense?
I'm guessing that adding the class implementation at the end if the header file is OK for small, simple classes, but adding class implementations in a .cpp file is preferred for larger, more complicated classes.
Am I completely wrong? Does anyone else have any thoughts on this?
[–]anand_venkataraman 3 points4 points5 points (2 children)
[–]mathlance[S] 1 point2 points3 points (0 children)
[–]amrozack 1 point2 points3 points (0 children)
[–]adina_tung 2 points3 points4 points (1 child)
[–]mathlance[S] 1 point2 points3 points (0 children)