The example of operant conditioning is: when a rabbit goes to the bathroom in the litter box, she gets a piece of carrot.
Operant conditioning involves learning through consequences, where a behavior is strengthened or weakened based on the rewards or punishments that follow it. In this case, the rabbit is rewarded with a piece of carrot for using the litter box, thus reinforcing that behavior.