Charges of the same the poles ( negative to negative or positive with positive ) are repelled and charges of the opposite polarity are attracted . Charges of the same polarity are repelled and charges of the opposite polarity are attracted .