单项选择题

A.installing rat guards on the mooring lines when in port
B.keeping foods protected and avoiding the accumulation of garbage
C.eliminating possible living spaces for rats when the ship is constructed
D.trapping and/or poisoning the rats