Arduino Mega-Nano Communication

I am starting a project that will require communication between an Arduino Nano and Mega. I understand how to wire the tx and rx pins but I am not sure how to tackle the software component of this. Any help is appreciated.

Serial.print or Serial.write on one side; Serial.read on the other.

Hardwired or wireless doesn't make any difference. The communication is still using the Serial class.