Allow me to elaborate on my question OP. Are you asking how an object inside of process A communicates with another inside of process B? Otherwise I can't figure out what you mean by message passing and so I have to defer back to MikeyBoy's earlier answer.
I just saw in UML objects passing messages in sequence diagram...so I wanted to know how does this happen in actual coding...I myself is a new in this thing
In C++, those can be method calls. Calling a method of a class is analagous to sending a message to the object, because a method call is, essentally, an instruction to an object.
Incidentally, when I Googled "OO C++ message passing", the very first result explained this. You could have done an awful lot of Google searches in the last week and a half.