Its the same situation when a guy hurts a girl and then she starts to think that all men are untrustworthy or cheaters.
Another example of over generalization is when someone treats you badly and then you start to think that everyone became bad tempered. A third example is when you lose your job and then start to think that you are not good or a total failure.