how does an object develop an electric charge?

I answerd there are three ways friction, contact and induction?

is this correct

Yes.