Originally Posted by iMalc (void) is unnecesary in C++. Just use () Don't use variables starting with an underscore then a lowercase letter. IIRC that's reserved for the compiler. Why don't you just make the the whole class B a friend of class A? i believe that's double underscore. had that one bite me 2 yrs ago...