Your dog may come to hate who breaks your heart

Those who have a dog as a pet can notice how it reacts when a stranger arrives at home: it moves away, it barks or it is very affectionate, even more than normal. But why is this reaction?According...