β -decay is a process in which a neutron is converted into a proton and an electron or a proton into a neutron and a positron: n→p+e−+vˉ p→n+e++vˉ
Now as the process of β -decay is associated with the increase of atomic number of the parent nucleus, so the charge of the nucleus changes by keeping the mass number constant as we lose a neutron and gain a proton.