Whenever all the capital stock of a railroad corporation formed under this title is owned by a railroad corporation chartered under the laws of this state or another state, the corporation may sell and convey to the corporation owning its stock all its franchises, rights, roadbed, and property; but the purchasing company, if a foreign corporation, shall keep an office in this state and an agent thereat, service of process upon the agent shall be service upon the purchasing company. The railroad so purchased shall be in all respects subject to the laws of this state as if owned by a domestic corporation, and all liens and rights of creditors shall be preserved unimpaired.
Ala. Code § 10A-21-2.11 (1975)