Answer:
Classical conditioning.
Step-by-step explanation:
Classical conditioning: In psychology, classical conditioning is considered as one of the most influential theories to behaviorists and was discovered by Ivan Pavlov when he was working with rats.
Classical conditioning is described as a method of learning through which an association or connection is being made between stimulus and response. A particular stimulus named conditioned stimulus gets connected with another stimulus named unconditioned stimulus resulting in to produce a response named conditioned response.
In the question above, the given statement is an example of classical conditioning.