C++ question

A question: how many ways to have objects communicate in C++