The udder of a cow consists of four separate compartments, each corresponding to one teat. Each teat serves as an outlet for the milk produced in the corresponding compartment of the udder.