Whenever any railroad corporation, as lessee or otherwise, operates any railroad in connection with its own road, the provisions of this act as to charges for transportation and carrying freight and passengers shall apply to the other road so operated in like manner as if the other road were a part of the line of road owned by the corporation operating the road, and for such purposes all lines of railroad operated by the same company shall be considered as one and the same road.