and property. Assuming that the State is not controlled by contract between itself and .the railroad company, the question is how far does the authority of the legislature extend in a case where it has the power of regulation, and also, the right to amend, alter or repeal the charter of a company, together with a general power to legislate upon the subject of rates . and charges of all carriers. It has no right even under such circumstances to take away or destroy the property or annul the contracts of a railroad company, with third persons. Greenwood v. Freight Company, 105 U. S. 13, *17; Commonwealth v. Essex County, 13 Gray, 239, People v. O’Brien, 111 N. Y. 1, 52; Detroit v. Detroit & Howland Plankroad,* 43 Michigan, 140.
A railroad company, although a quasi public corporation, and although it operates a public highway, Cherokee Nation v. Southern Kansas Railway, 135 U. S. 641; Lake Shore &c. Railway v. Ohio, 173 U. S. 285, 301, has nevertheless rights which the legislature cannot'take away without a violation of the Federal Constitution, as stated in Smyth v. Ames, 169 U. S. 466, 544. A corporation is a person within the protection of the Fourteenth Amendment. Minneapolis & St. Louis Railway v. Beckwith, 129 U. S. 26; Smyth v. Ames, 169 U. S. 466, 522, 526. Although it is under .governmental control, that control must be exercised with due regard to .constitutional guarantees for the protection of .its property.
The question is presented in this case whether the legislature of a State, having power to fix maximum rates and charges for the transportation of persons and property by rail.road companies, with the limitations above, stated, and having power to alter, amend or repeal their charters, within, certain limitations, has'also the right, after having fixed a maximum rate for the transportation of passengers, to still further regulate their affairs and to discriminate and make an exception in favor of certain persons, and give.to them a.right of transportation for a less sum- than the, general rate provided by law.
It is said that the power to create this exception is. included in the greater’ power to fix rates generally ; that having the right to establish maximum 'rates, it therefore has power, to