What was the primary reason for the construction of the Swakopmund–Windhoek railway line in 1897?

A. To facilitate the transportation of goods from Germany to German South West Africa
B. To connect the port of Swakopmund to the capital city of Windhoek for tourism purposes
C. To replace the existing ox wagon transport system that collapsed due to a rinderpest outbreak
D. To provide a means of transportation for the local workers and soldiers
Answer: 