Hello!
What we are talking about here are different charges of either positive or negative. ie proton excessive or electron excessive. The rule of charges are like charges, meaning charges that are the same sign, positive or negative, repulse each other and opposite charges attract each other.
Hope this helps!! Any questions please ask!! Thank you!!