Pneumonia

I know that Pneumonia is an infection of one or both lungs which is usually caused by bacteria, viruses, or fungi. I just want to know how some people catch pneumonia and what are the common symptoms?