All persons residing in the State, who have attained the age of eighteen years, shall be regarded as of legal age and their period of minority to have ceased.