You either need to inline AnyOtherClass::method() or put the implementation in it's own cpp file.

>#ifndef _AVOID_MULTIPLE_LINKING_ //even this
#define _AVOID_MULTIPLE_LINKING_

will prevent multiple inclusion in the same file. It wont prevent multiple linking if it's included in seperate cpp files.