Due to the nested use of the #include command, the header file is included twice, so that the Class in the header file is repeatedly defined when compiling. So the header file is modified as follows:
#ifndef Head_h #define head_h ..... # Endif