The plaintiff attacks the constitutionality of chapter 511, Public-Local Laws 1925, upon the ground that it denies the equal protection of the law and discriminates against taxpayers in the county of Anson; and, further, upon the ground that the act in question violates Article II, sec. 29, of the Constitution of North Carolina, which provides, among other things, as follows: “Nor shall the General Assembly enact any such local, private or special act by a partial repeal *589of a general law.” The general law, C. S., 2612, provides that “no county, city or town shall charge any license or registration fee on motor vehicles in excess of one dollar per annum.” Therefore, the plaintiff contends that chapter 511, Public-Local Laws 1925, in attempting to levy a license tax of five dollars on automobiles, repeals, so far as Anson County is concerned, a general law, to wit, C. S., 2612, sec. 2.
The plaintiffs allege in substance that they are residents and taxpayers of Anson County, and that the defendant is the sheriff of Anson County, charged with the duty of collecting taxes levied by the Legislature and board of commissioners of said county. And, further, that the plaintiffs are informed, believe and so allege, that the defendant, sheriff, has collected, and is now attempting to collect, tax as herein-before alleged.
The plaintiffs do not allege that they are owners of automobiles or motor trucks, or that the sheriff has collected or is attempting to collect any license tax from these particular plaintiffs. Therefore, there is no allegation that any property right of plaintiffs has been invaded as a result of chapter 511, Public-Local Laws 1925.
In Moore v. Bell, 191 N. C., 311, Connor, J., speaking for the Court, says: “The validity of a statute enacted by the General Assembly of North Carolina, declaring certain acts therein defined to be unlawful, and imposing punishment therefor, as crimes, which do not affect property or property rights, and which do not expose to oppression or vexatious litigation one who denies the power of the General Assembly, under the Constitution of the State to enact such statute, in the event that he shall violate its provisions, may not be determined in an action to restrain and enjoin a public officer who is required by the statute to enforce it. The invalidity of a statute, upon the ground that it is in violation of the Constitution of the State, is a good defense upon a prosecution in the courts for a violation of its provisions. Upon such prosecution his plea may be heard; its validity will then be determined by the courts in the exercise of their jurisdiction to see that no person is Taken, imprisoned, or disseized of his freehold, liberties or privileges, or outlawed or exiled, or in any manner deprived of his life, liberty, or property, but by the law of the land.’ We are precluded, upon this appeal, from considering or deciding whether or not the statutes are void for the reasons assigned by plaintiffs.” Thompson v. Lumberton, 182 N. C., 260; Turner v. New Bern, 187 N. C., 548; Adv. Co. v. Asheville, 189 N. C., 737.
In S. v. Corpening, 191 N. C., 752, Stacy, C. J., says: “The courts never anticipate a question of constitutional law in advance of the necessity of deciding it.” Commissioners v. State Treasurer, 174 N. C., 148; Person v. Doughton, 186 N. C., 725.
*590As there is no allegation in the complaint and no finding of fact to the effect that any property right of plaintiffs has been invaded, the question presented in this appeal is purely a hypothetical question as to the constitutionality of a statute enacted by the Legislature. This Court, therefore, is precluded from passing upon the constitutionality of said statute, and the judgment is
Affirmed.