How does a housefly transmit diseases?

How does a housefly transmit diseases ?
A . A housefly gets attracted towards garbage and excreta. The harmful microorganisms present in excreta and garbage easily stick to its fine array of body hair and are thus, transferred to food stuffs whenever they sit on them and a result food gets poisoned.