I\'d like to use toString with class argument, but for some reason there is an error. The code is:
Animal.h
#include \"Treatment.h\" #in
You include Animal.h in Treatment.h before the class Treatment is defined, that's why you're getting the error.
Treatment
Use forward declaration to solve this:
In Animal.h add line
class Treatment;