Whooping cough isn't as common as it used to be because most children are vaccinated against it. The vaccination doesn't give you lifelong protection so you can get the infection as an older child or adult, although the symptoms are usually milder than in babies and young children.
Attribution: BUPA