Probation officers and other officers appointed in pursuance of this Act shall be deemed to be public servants within the meaning of section 21 of the Indian Penal Code, 1860 (45 of 1860).