to justify the state in thus interposing its authority in behalf of the public , it must appear , first , that the interests of the public generally , as distinguished from those of a particular class , require such interference ; and second , that the means are reasonably necessary for the accomplishment of the purpose , and not unduly oppressive upon individuals .