No person shall be eligible to the office of mayor of said city who has not been a resident thereof for one (1) year or more continuously preceding his election, and who has not attained the age of twenty-five (25) years. Nor shall any person be eligible to the office of alderman of said city who has not been a resident thereof for a like period and who has not attained the age of twenty-one (21) years.