Atoms are composed of positively charged protons, neutral neutrons, and negatively charged electrons. When the number of electrons in the atom is equal to the number of protons, the atom is said to be neutral or have no charge. If there are more electrons than protons in the atom, the atom has a negative charge. If there are more protons than electrons in the atom, the atom is said to have a positive charge. Positive and negative charges at rest on an object are called static electricity.
Static electricity is an electric charge built up in one place.
If you rub only one end of a plastic comb, then only that end becomes charged. The electric charges stay in one place. An object can become charged in several different ways. When electrons are transferred between two objects that are rubbed together, the objects become charged due to friction. Conduction is another way that objects can become charged.