cout<<ReceiverObj->getString() prints an empty string.
Im suspecting that Sender::myString is not successfully passed through to Receiver::receive(str)
If this is the case, how can i pass the string from one class to a function in another.
On the face of it, it seems like it should work (assuming you have getString() defined for Receivers). Could you produce a minimal compilable example with the problem?