This type of static electric charge is called "induced charge". The electrostatic induction is a method of electrification, where the body usually remains electrically neutral, because what happens in reality, it is a movement of negative charges (electrons) to a region of the body where an excess of negative charge is concentrated. Thus, the other parts of the body, have excess positive charge.
For a permanent electrification in the body, it must make a grounding in one of the regions which shows an excess of electric charge, so that, they are neutralized. Thus, the body retains excess electric charge that is concentrated in the other region. This can be done either in the positive region, or in the negative region.