Prior to entering upon the duties of their respective offices, all officers of the police department shall take and subscribe the oath prescribed by this Code.