A dog can learn how to do something that it is taught to do, called learned behavior, such as
eat food when it is hungry lean back and accept having nails trimmed bark when it wants to urinate when its bladder is full