delivered the opinion of the court.
In this case a judgment was rendered against the railroad company (appellant) for the sum of two hundred and forty-two dollars, the cost of erecting two lines of fence separating the land or right of way owned by the company from the land of the appellee. The way of the company passed through the tract of land, and this right on the part of the company had been granted to it about ten years before the action was instituted by a remote grantor of the appellee without any claim to damages. In other words, the right to pass over the land was, by the original owner,
The railroad company complains of the judgment, and insists that the act is unconstitutional, because it exempts the owner of the adjoining land from any part of the burden, and places it all on the company,
■ It will be found that laws are being constantly enacted that are applied sol ?ly to the obligations and duties of corporations, and v hile such statutes are special, and apply alone in many instances to a particular class of corporations, they are, nevertheless, held valid, because of the legislative control over them, in order for the protection of the public and the safety of the citizen. The right to legislate for the purpose of protecting the lives of those who are being carried as passengers on railroads, and to secure the safety of both persons and property,, is within the province of the law-making power, and, therefore, a railroad may be compelled to fence its track when, in the opinion of the Legislature, it is necessary for the safety of those who are passengers upon its train, or even to prevent the useless or negligent destruction of stock. Such legislation may be regarded as a proper regulation of the duties of railroad corporations. The rights and privileges conferred, when connected with the public interest involved, authorize this legislative control, and in no manner interferes with the proper exercise of the rights conferred by the act of incorporation. The power is retained by the Legislature to regulate the exercise of the rights given for the safety of the public. If the Legislature should deem that it was necessary for the security of the passen
This is the general doctrine applicable to the rights of private and quasi public corporations under their charters, and when applied to the facts of this case the 12fch section of the act in question is plainly for the benefit of one land-owner at the expense of another.
The judgment is reversed, and remanded with directions to sustain the demurrer, and for proceedings consistent with this opinion.