How do contracts have addresses and how do they run code?

Cryptocurrency News and Public Mining Pools

How do contracts have addresses and how do they run code?

I am reading mastering ethereum and read a part that I do not understand:

Contracts have addresses, just like EOAs. Contracts can also send and receive ether, just like EOAs. However, when a transaction destination is a contract address, it causes that contract to run in the EVM,

I thought contracts are distributed and can be executed by any node on the ethereum network, but from the above, if contracts have addresses it means they only resides in one place. Right?

And what if the node, that corresponds to the contract is offline, how will the code execute?

submitted by /u/finlaydotweber
[link] [comments]