The boards of supervisors or other governing bodies of counties and cities and counties may organize, establish, equip, and maintain, including the purchase of suitable sites and the construction of suitable buildings, adjustment schools in each county or city and county for the purpose of furnishing to minors under the age of 18 years pursuant to this article, care, custody, education, training, and adjustment to good citizenship, which shall be continuous and uninterrupted during the period the minors remain in school.