#include "base.h" #include "anotherClass.h" int main() { base baseObject1 ; anotherClass object2; object2.memberFunction( baseObject1 ); return 0; }