All cities now or hereafter incorporated shall have, exercise and enjoy all the rights, immunities and privileges of, and shall be subject to all the duties incumbent upon, or appertaining to, the town corporations to which they succeed.