This сase arises as a result of the filing of a county attorney’s information in the Municipal Court of Sioux City charging the Chicago and Northwestern Railway Company with a violation of the criminal provisions contained in sections 477.51 and 477.52, Code of Iowa, 1962. The court overruled the company’s demurrer specifically attacking the constitutionality of those sections insofar as they undertook to create a criminal offense, on the ground that the information contained matter which would constitute a legal defense or bar to the prosecution. Section 777.2(2), Code, 1962.
*992 Section 477.51 provides as follows:
“Every railway corporation operating or doing business in the state shall as often as semimonthly pay to every employee engaged in its business all wages or salaries earned by such employee to a day not more than eighteen days prior to the date of such payment. Any employee who is absent at the time fixed for payment, or who for any other reason is not paid at that time, shall be paid thereafter at any time upon six days demand, and any employee leaving his or her employment or discharged therefrom shall be paid in full following his or her dismissal or voluntary leaving his or her employment at any time upon six days demand. No corporation coming within the meaning of this section shall by special contract with the employees or by any other means secure exemption from the provisions of this section. Each and every employee of any corporation coming within the meaning hereof shall have his or her right of action against any such corporation for the full amount of his or her wages due on each regular pay day as herein provided in any court of competent jurisdiction of this state.”
Section 477.52 provides as follows:
“Any corporation violating section 477.51 shall be deemed guilty of a misdemeanor and fined in a sum not less than twenty-five dollars, nor more than one hundred dollars, for each separate offense, and each and every failure or refusal to pay each employee the amount of wages due him or her at the time, or under the conditions required in section 477.51, shall constitute a separate offense.”
Following the overruling of the demurrer, plaintiff herein commenced original certiorari proceedings in this court. It is respondent’s contention, first, that certiorari was not the proper procedure to review the order overruling the demurrer, and second, that the statutes in the respect charged are not unconstitutional. We cannot agree in either respect.
I. By the weight of authority and better reasoning, the constitutionality of a statute under which a party is charged with a crime may be raised by demurrer. State v. Talerico,
It is respondent’s contention, however, that certiorari is not proper procedure for reviewing the lower court’s order overruling a demurrer ta an information simply because the demurrer challenged the constitutionality of the criminal statute involved. Respondent argues, that by filing its demurrer and arguing the same it invoked the jurisdiction of the court and, although the court’s ruling on the demurrer may have been erroneous, the proper and only method of review available to the company was then by appeal. The contention is without merit. Usually jurisdiction of the subject matter cannot be conferred by consent. Stucker v. County of Muscatine,
As we understand it, respondent contends that since the company could not appeal until a final judgment was rendered (section 793.2 of the Code), it must plead to the сharge and stand trial before a review could be had in this court. It cites as authority therefor State v. Anderson,
It was pointed out at page 102 in the Anderson case: “The Rules of Civil Procedure provide a writ of certiorari may issue where a tribunal is alleged to have exceeded its proper *994 jurisdiction or otherwise acted illegally. B. C. P. 306. * * * The statute here involved, section 793.2, Code of Iowa, which provides an appeal in a criminal case can only be taken from the final judgment, refers to appeals only. It does not apply to proceedings in certiorаri.”
Furthermore, it is pointed out in Stacker v. County of Muscatine, supra, loc. cit. 489 of 249 Iowa, that if there were adjudications on jurisdictional merits, the determinations were final adjudications. Martin Bros. Box Co. v. Fritz,
All authorities cited by respondent precede the adoption of the Iowa Buies of Civil Procedure, which deleted a former requirement for such a writ, i.e., that there was a lack of a plain, speedy and adequate remedy at law, so by rule we may now consider a jurisdictional question by way of a writ when “an inferior tribunal, board or officer, exercising judicial functions, is alleged to have exceeded its or his proper jurisdiction or otherwise acted illegally.” R. C. P. 306.
It is Hornbook law that a court must have jurisdiction of both the parties and the subject matter before it can validly act, and jurisdiction of the subject matter must be derived from a valid statute. When a court attempts to act under an unconstitutional statute, all proceedings based thereon are void. In the recent case of Knott v. Rawlings,
Without further discussion, we conclude certiorari was the proper method of review of the municipal court’s overruling of plaintiff’s demurrer, that its ruling amounted to a final determination of the issue as to jurisdiction and under rule 306 and the inherent power of this court was properly brought *995 before the supreme court for determination of this vital question in the prosecution.
II. Plaintiff argues in three propositions that the provisions of Code sections 477.51 and 477.52 insofar as they undertake to create a criminal offense are void. We find it necessary to consider only its first proposition.
Plaintiff contends that insofar as sections 477.51 and 477.52 undertake to create a criminal offense, they are void, as being in violation of section 6 of Article I of the Constitution of the State of Iowa and also Amendment 14 to the Constitution of the United States, in that they deny plaintiff the equal protection of. laws and are not laws of a gmeral nature having a uniform operation.
Section 6, Article I, of the Constitution of Iowa, provides: “All laws of a general nature shall have a uniform operation; the General Assembly shall not grant to any citizen, or class of citizens, privileges or immunities, which, upon the same terms shall not equally belong to all citizens.”
Amendment 14, section 1, of the United States Constitution, provides: “All persons born or naturalized in the United States, and subject to the jurisdiction thereof, are citizens of the United States and of the State wherein they reside. No State shall make or enforce any law which shall abridge the privileges or immunities of citizens of the United States; nor shall any State dеprive any person of life, liberty, or property, without due process of lav.'; nor deny to any person within its jurisdiction the equal protection of the laws.”
Without attempting to confine our consideration to one or the other of these constitutional restrictions, our problem is whether these statutes deny the railroad company equal protection of the laws, and whether they are laws of a general nature having a uniform operation. Pierce v. Chicago
&
N.W. Ry. Co.,
We have said that the provision of section 6, Article I, of the State Constitution is the “equality” provision, and that under our system of free constitutional government the courts have a high duty to see to it that legislation does not violate the equality of rights guaranteed by the Constitution. Sperry & Hutchinson Co. v. Hoegh, supra,
III. It will be observed from an analysis of sections 477.51 and 477.52 that “Every railwáy corporation operating or doing business in the state shall * * * pay to every employee engaged in its business all wages or salaries earned by such employee to a day not more than eighteen days prior to the date of such payment”, and they provide that any corporation violating that provision “shall be deemed guilty of a misdemeanor and fined in a sum not less than twenty-five dollars * * * for each separate offense * * *.” Plaintiff points out that while these provisions are made applicable to railway corporations, they do not apply to corporations engaged in the same transportation business using motor trucks. Is there a good and vаlid reason for such discrimination? We think not. In regard to the subject matter of the original Act, there is no reasonable justification or necessity for the classification.
We recognize that it is often necessary, in accomplishing
*997
efficient and beneficial legislation, to divide tbe subjects upon wbicb it operates into classes, and tbis tbe legislature can do, but tbe authorities all agree that tbe distinction in dividing must not be arbitrary or unreasonable. It must be based upon differences wbicb are apparent and reasonable. As we pointed out in Dunahoo v. Huber,
An interesting article dealing with this question is found in the September 1949 issue of the California Law Review, Volume 37, No. 3, entitled “The Equal Protection of the Laws.” It is pointed out therein that “classify”, so used, means to define a class, and does not refer to the act of determining whether a person is a member of a particular class. It is the defining of the class to which the law applies which constitutes the distinctly legislative classifieatory activity to which the court refers in conceding that the power to classify belongs to the legislature.
It is also elementary that membership in a class is determined by the possession of the traits which define that class. Thus, a corporation is a member of a class if and only if it possesses the traits which define a class. Whatever the defining characteristics of a class may be, every member of that class will possess those characteristics. It is often said a reasonable classification is one which inсludes all who are similarly situated, and none who is not.
However, as pointed out in the California Law Review article, supra, we must also look beyond the classification to the purpose of the law. Therefore, a reasonable classification is one which includes all persons who are similarly situated with respect to the purpose of the law, which may be either the elimination of a public “mischief” or the achievement of some positive public good. Failure to pay wages or salaries by a certain date may be an evil, but this does not justify discrimination betwеen classes in order to put it down. Insofar as the public is concerned, the evil of failure to pay wages or salaries *998 to employees by a certain date by any corporation engaged in the transportation business is quite as obnoxious to the community as though it were done by a railroad corporation. Surely there is no reasonable ground for such discrimination, especially as to the criminal provisions provided therein. It may even be that small truck or bus corporations are less responsible financially than a railroad corporation as we knоw them today. No other purpose is suggested or occurs to us as a basis for the statutes here involved.
While there may be some basis, as suggested by the state, for the difference in the classification of corporations and individuals, when examined in relation to the subject matter of the legislation, the classification is in doubt: The subject matter here is the debt owed the employee by the employer, and it is true the limited liability of a corporation may furnish a thin but rational distinction between it and an individual justifying a different treatment of these employees. But this would not apply when one сorporation is a railroad corporation and another is a bus or truck corporation engaged in the same business.
Where the evil to be remedied, or the economic benefits to be realized, relates to members of one class quite as well as to another, such a classification would be unwarranted. As pointed out in the Dunahoo v. Huber ease, supra, section 6, Article I, of our Constitution, exacts that the general assembly shall not grant to any class of citizens, privileges and immunities which upon the same terms shall not equally belong to all citizens, and this necessarily includes any class into' which the citizens or persons may be divided. We are unable to discover any reasonable ground for saying that railroad corporations engaged in the transportation of goods and persons should be charged with a crime for not paying its employees wages by a certain date, and truck and bus corporations engaged in the same business should not be so charged.
While it may be said that “the equal protection of the laws is a pledge of the equal protection of equal laws” (Yick Wo v. Hopkins,
IV. In finding that a clаssification attempted in a statute involving an occupational tax on peddlers was invalid in State v. Garbroski, supra,
Further, it was said in the Johnson opinion: “If a distinction is to be made as tо the liability of employers to their employees, it must be based upon a difference in the nature of the employment, and not of the employers. One rule of liability cannot be established for railway companies, merely as such, and another rule for other employers, under like circumstances and conditions, * * Neither would it relieve the act from the imputation of class legislation that it applies alike to all railroads.” See Chicago, Kansas and Western R. Co. v. Pontius,
We think something more tangible than a mere name, business or purpose of a corporation is еxacted by the courts as a basis of classification. There must be some connection between the legislation and the subjects upon which it operates, and *1000 within the latter must be included all subjects in like situation and circumstances.
Gulf, Colorado and Santa Fe Ry. Co. v. Ellis,
Obviously, the duty imposed by the sections of the Code here are not related to special hazards, special privileges or peculiarities of the industry. It relates only to a common obligation of all employers, i.e., to pay the wages due its employees within a reasonable time after thе services were rendered.
Notice is taken that the case of St. Louis, Iron Mountain and St. Paul Ry. Co. v. Paul,
We are content to follow the Ellis case in this jurisdiction requiring a material difference or evident cause for a distinction between classes of individuals or corporations to justify the application of different laws thereto. Attention to the question involved in the concrete, rather than the abstract, can lead to no other result. All persons in like situations should stand equal before the law. No favoritism should be tolerated. If it is a good law for a driver of a Diesel locomotive, why isn’t it equally good for a driver of a Diesel truck? There is no greater need for prompt pay of one employee than the other. Nothing is involved herein except the time and manner of payment of wages or salaries, and there is no apparent or revealed reason why one must be paid in one manner and the other differently. There is nothing in the situation of the one which will justify extending the protection of a statute like that under consideration for his benefit and denying such benefit to the other. No reason appears why the railroаd corporations should be penalized for late payments and the truck or bus corporations, also engaged in the business of transporting persons and goods, be relieved of that penalty. As stated in State ex rel. Richards v. Hammer, 42 N. J. L. 435, 440, “The true principle requires something more than mere designation by which such characteristics as will serve to classify, for the characteristics which thus serve as the basis of classification must be of such a nature as mark the objects so designated as peculiarly requiring exclusive legislation. There must be substantial distinction, having a reference tо the subject matter of the proposed legislation, between the objects or places embraced in such legislation and the objects or places excluded.” For further discussion of the applicable rule and authorities therefor, see State v. J. B. & R. E. Walker, Inc., supra; State v. Martin,
V. The provisions of the Fourteenth Amendment to the Constitution of the United States requiring equal protection of the laws, and the sixth section of Article I of the State Constitution requiring that all laws shall have a uniform operation should not be frittered away. We have said thеir importance in guarding against the segregation of society into classes, and in assuring to all citizens that equality before the law, which is essential to free government, cannot be overestimated. They have been receiving special attention by the courts recently. If the constitutionality of these statutes cannot be sustained save by resort to refinements in distinction and sophistry in reasoning, in which no court should indulge, and which would be destructive of the limitations above referred to on legislative power, they should fall. Vardaman v. McBee, supra,
VI. Respondent’s contention that the provisions of sections 477.51 and 477.52 constitute an amendment to plaintiff’s Articles of Incorporation within the purview of the Iowa Constitution, Article VIII, section 12, is in the category mentioned above.
Article VIII, section 12, provides: “Subject to the provisions of this article, the General Assembly shall have power to amend or repeal all laws for the organization or creation of corporations, or granting of special or exclusive privileges or immunities, by a vote of two thirds of each branch of the General Assembly; and no exclusive privileges, except as in this article provided, shall ever be granted.” No exceptions appear therein.
While corporations are creatures of the state, subject to control by the state, that control is not absolute and is subject to limitations found elsewhere in both the Federal and State Constitutions. These include the provisions relating to equal protection, due process, and uniform operation of laws. Tn fact, *1004 this Article specifically provides “no exclusive privileges * * * shall ever be granted.”
Respondent places heavy reliance on the cases of St. Louis, Iron Mountain and St. Paul Ry. Co. v. Paul, supra, аnd Erie R. Co. v. Williams,
We find no consideratiоn given class legislation or equal protection requirements in the early Williams case, and agree with plaintiff that it indicates the power to amend corporate charters is and should be limited by the appropriate provisions of the State and Federal Constitutions.
VII. Sections 477.51 and 477.52 are criminal statutes and apply only to railway corporations. They do not apply to other common carriers, other corporations similarly engaged, or other businesses of a like nature not operating under a corporate charter. Their provisions do not rеlate to duties peculiar to a common carrier alone. To create such a duty and impose such a penalty only on railroad corporations for failure to meet wage and salary payments within a certain time, and not include other persons or corporations similarly operating, violates both *1005 the equal protection and the uniformity requirements of the State and Federal Constitutions, and proceedings thereunder must be declared null and void. IVe are satisfied the classification attempted in sections 477.51 and 477.52 was unreasonable and arbitrary, that they indicate no distinction which bears a just and proper relation to the attempted classification, and that the criminal provisions therein must fall.
So believing, we find it unnecessary to consider or discuss whether these sections also are violative of the constitutional guaranty of freedom to contract, are a valid exercise of police power, or deprive plaintiff of liberty and property without due process of law.
We conclude that the state legislature was without power to impose penalties in the Act here in question, and that the criminal action commenced against plaintiff thereunder must be dismissed. — Writ sustained and criminal charge against plaintiff dismissed.
