The term 'minor', as used in this chapter, means a person who has not attained the age of eighteen years.