Male fittings have their threads on the outside, much like a bolt, while female fittings have threads on the inside like a nut. They attach to each other in just the same way as a nut and a bolt.