Suppose there are two header files, header1.h and header2.h, and, let's say, there are three .cpp files - code1, code2, code3 of approximately the same content:
code1.cpp:
#include "header1.h" #include "header2.h" //some code...
code2.cpp:
#include "header1.h"
code3.cpp:
//some code
The question is how many object files will be generated and how did you calculate the number of object modules?