Cities of the first class, cities of the second class, and villages shall have the power to purchase, construct, maintain, and improve garbage disposal plants or systems or solid waste disposal areas, and purchase equipment for the operation thereof, for the use of their respective municipalities and the inhabitants thereof, and are hereby authorized and empowered to lease or to take land in fee within their corporate limits or without their corporate limits by donation, gift, devise, purchase, or appropriation for rights-of-way and for construction and operation of such a disposal plant, system, or solid waste disposal area.