When I was a child, my mother and I would run errands and my behavior determined reward from punishment.
This is known as operant conditioning – how an individual learns appropriate versus inappropriate behavior and the resulting consequences. When I was out in public with my mother, I had to stay with her and mind my manners. For each successful trip, she would reward my good behavior with ice cream (positive reinforcement). Likewise, when I was rude, stubborn, and would run off, I would receive many verbal corrections (positive punishment) and no ice cream (negative punishment).
Both are ways of learning, although classical conditioning is more of an involuntary reaction and operant conditioning is about like programing a computer. Classical conditioning typically involves a bodily response the individual has a difficult time controlling, while operant conditioning gives the individual the opportunity to decide. Other examples of classical conditioning include Pavlov’s dogs salivating when they heard a bell or a child suddenly disliking their favorite food for a time because they got ill after eating it one time. Examples of operant conditioning include learning a new job/task and learning to drive.