Which of the following statements best characterizes South Africa's economy immediately following the end of apartheid?

A.
It depended on the export of cash crops like rubber and coffee.
B.
It had limited manufacturing and depended on the export of gold.
C.
It diversified with widespread manufacturing and service sectors.
D.
It depended heavily on foreign investment and trade.

Please select the best answer from the choices provided.

D. It depended heavily on foreign investment and trade.