Municipal corporations are hereby classified into cities and villages. All such corporations having a population of five thousand or over shall be cities; all others shall be villages. The method of transition from one class to the other shall be regulated by law.