Every member of the police department and every member of the fire department in all cities coming within this part, who was such member on the day upon which this code goes into effect shall retain his or her position without examination, and be subject to all the conditions and benefits of this part.