All railroad companies incorporated or organized, or which may be incorporated or organized as aforesaid, shall have the right of connecting with each other, and with the railroads of other states, on such terms as shall be mutually agreed upon by the companies interested in such connection.
610 ILCS 35/2