Dental

A 6 year old female patient complains of pain due to a decayed lower right 2nd molar. She has a history of unpleasant dental extraction with the lower left second molar. On seeing the dentist, the child immediately cries and withdraws. Which theory of child psychology best explains the reaction of the patient?