How Does Heat Exchanger Work?

As previously stated, heat exchangers come in a variety of shapes and sizes, and their sole purpose is to transfer and transmit heat in a variety of processes and scenarios, such as space heating, refrigeration, cooling, power plants, chemical plants, and other applications. But how do these machines function?