after stating the case, delivered the opinion of the court.
At the trial, and in the Supreme Court of the State, it was contended by the defendant, and the contention is renewed here, that the law of Kansas of 1874 is in conflict with the Fourteenth Amendment of the Constitution of the United States, in that it deprives the company of its property without due process of law, and denies to it the equal protection of the laws.
In support of the first position the company calls the attention of the court to the rule of law exempting from liability an employer for injuries to employés caused by the negligence or incompetency of a fellow-servant, Avhich prevailed in Kansas and in several other States previous to the act of 1874, unless he had employed such negligent or incompetent servant without reasonable inquiry, as to his qualifications, or had retained him after knowledge of his negligence or incompe
*208
teucy. The rule of law is conceded where the person injured, and the one by whose negligence or incompetency the injury is caused, are fellow-servants in the same common employment, and acting under the same immediate direction.
Chicago and Milwaukee Railway
v.
Ross,
The objection that the law of 18T4 deprives the railroad companies of the equal protection of the laws is even less tenable than the one considered. It seems to rest upon the theory that legislatipn which is special in its character is necessarily within the constitutional inhibition; but nothing can be further from the fact. The greater part of all legislation is special, either in the objects sought to be attained by it, or in the extent of its application. Laws for the improvement of municipalities, the opening and widening of particular streets, the introduction of water and gas, and other arrangements for the safety and convenience of their inhabitants, and laws for the irrigation and drainage of particular lands, for the construction of levees and the bridging of navigable rivers, are instances of this kind. Such legislation does not infringe upon the clause of the Fourteenth Amendment requiring equal protection of the laws, because it is special in its character; if in conflict at all with that clause, it must be on. other grounds. And when legislation applies to particular bodies or associations, imposing upon them additional liabilities, it is not open to the objection that it denies to them the equal protection of the laws, if all persons brought under its influence are treated alike under the same conditions. A law giving to mechanics a lien on buildings constructed or repaired by them, for the amount of their work, and a law requiring railroad corporations to erect and maintain fences along their roads, separating them from land of adjoining proprietors so as to keep cattle off their tracks, are instances of this kind. Such legislation is not obnoxious to the last clause of the Fourteenth Amendment, if all persons subject to it are treated alike under similar circumstances and conditions in respect both of the privileges conferred and the liabilities imposed. It is conceded that corporations are persons within the meaning of the amendment.
Santa Clara County
v.
Southern Pacific Rail
*210
road Company,
Judgment affirmed.
