Electrons are transferred from Object A to Object B. As a result, A loses electrons and becomes positively charged.
Object B will become negatively charged when it comes into contact with a positively charged object A, as electrons will transfer from A to B, leaving A with an excess positive charge due to the loss of negative electrons.
For Object A to become positively charged when brought close to Object B, electrons must be transferred from Object A to Object B. Electrons carry a negative charge, so when they move from one object to another, the object losing electrons becomes positively charged, and the object gaining electrons becomes negatively charged.
Therefore, in this scenario, Object A loses electrons and becomes positively charged, while Object B gains those electrons and becomes negatively charged.