I got my doubt clear. I have to include B.h file in A.cpp file as earlier i was in a doubt since i already had made forward declaration of B in A's header file.
tempo is nothing imp. here....just a part of rough-code.
btw, thanks 4 clearing my doubt.