The law of effect states that

Response generalize across similar surroundings

close temporal contiguity is the key characteristic in forming an association between stimulus and respons

effect is strong if the effect is long lasting

A response will be strengthened if the organism is rewarded for that response