delivered the opinion of the Court.
This appeal challenges Virginia’s Sunday-closing laws. The challenge is based upon the prohibitions against “special laws” contained in the Constitution of Virginia. Eight corporations doing business in Virginia Beach (six retail merchants and two real estate development companies operating shopping centers) (the plaintiffs), 1 filed a motion for declaratory judgment in the circuit court. They alleged that they are compelled to close their retail stores in the City of Virginia Beach every Sunday due to the Sunday-closing laws, with which they comply. At the same time, they say, a number of their competitors selling identical products are exempt from the operation of those laws and therefore do business in Virginia Beach on Sundays, to the plaintiffs’ great competitive disadvantage.
Although they raise additional federal constitutional questions, the plaintiffs’ primary contention is that the Sunday-closing laws, as applied to them, constitute special legislation violating Article IV, sections 14 and 15, of the Constitution of Virginia. They named as sole defendant Paul A. Sciortino, Commonwealth’s Attorney of the City of Virginia Beach. The defendant filed a demurrer and grounds of defense. The plaintiffs filed a motion for summary judgment, and the case was submitted to the trial court as a question of law. The court issued a letter opinion upholding the constitutionality of the laws in question and, on September 12, 1985, entered a final order denying the plaintiffs’ motion for summary judgment, sustaining the defendant’s demurrer, and dismissing the case.
Seven of the eight plaintiffs petitioned for an appeal, which we granted. The motion for judgment contains an unusually detailed recital of facts which we take as true for the purpose of reviewing the trial court’s ruling on demurrer. In his grounds of defense, the defendant admits all facts essential to our decision. Because the matter was before the trial court on a motion for summary judg *140 ment, as well as on demurrer, and because no material facts are in dispute, we will proceed to final judgment here. Code § 8.01-681.
Virginia has had a Sunday observance law since at least 1610,
Mandell
v. Haddon,
The 1779 law survived with only minimal change until 1960. Code of 1950, § 18-329 (repealed, Acts 1960, c. 358). While it was in force, the courts were confronted with numerous questions requiring interpretation of the phrase “works of necessity or charity.”
In 1960, the General Assembly substantially revised the former law. The 1960 version continued a general prohibition against Sunday “work, labor, or business . . . except in household or other work of necessity or charity.” A list of some 30 items, the sale of which was expressly deemed not to be a work of necessity or charity, was appended, thus proscribing Sunday sales of those items. The statute also included specific exemptions for certain items expressly deemed to be works of necessity, such as the operation of furnaces and plants, the sale of newspapers and motor fuels, and the operation of recreational facilities.
In
Mandell
v.
Haddon,
we upheld the 1960 law against constitutional challenges which invoked both the special legislation prohibition of the Virginia Constitution and the Equal Protection clause of the Fourteenth Amendment to the Federal Constitution. In
Mandell,
we reviewed the principles governing our review of a statute attacked as special legislation. We noted that the constitutional provisions against special legislation do not prohibit legislative classification, but do require that classifications be “natural
*141
and reasonable, and appropriate to the occasion.”
Reviewing the 1960 law under the foregoing principles, we upheld it because we found that its classifications bore a “reasonable and substantial relationship to the object sought to be accomplished by the legislation.” Specifically, we observed that the act “affects all persons similarly situated or engaged in the same business throughout the State without discrimination.”
Id.
at 991,
In 1974, the General Assembly completely rewrote the Sunday-closing law. The 1974 law, which has been frequently amended, forms the basis of present Code § 18.2-341. 2 It contains *142 a general prohibition against Sunday labor but grants blanket exemptions to all transactions conducted by over 60 “industries or businesses” now grouped in 22 categories of exemptions. In addition to exemptions of the basic industries of agriculture, mining, and manufacturing, exemptions also cover retail stores which may engage in the sale of every conceivable kind of merchandise. The General Assembly has, on numerous occasions, added additional, and frequently broader, exemptions to those contained in the orig *143 inal 1974 enactment. One of these, covering “festival market places,” permits a local governing body to designate, on a case-by-case basis, any privately-owned shopping center as exempt from the Sunday-closing law if it is the site of a public “gathering” and more than 50% of its sales area “is used for otherwise exempt activities.” If the property is publicly-owned, even though leased for commercial use, the 50% requirement does not apply.
In 1974, the legislature enacted Code § 15.1-29.5, which permitted cities and counties, upon a favorable referendum vote, to remove themselves entirely from the operation of the Sunday-closing law. By employing this local option provision, the counties of Albemarle, Arlington, Buchanan, Chesterfield, Culpeper, Fairfax, Fauquier, Frederick, Gloucester, Grayson, Henrico, James City, King George, Loudoun, Mecklenburg, Orange, Page, Prince George, Prince William, Pulaski, Smyth, Spotsylvania, Stafford, Tazewell, Warren, and York, as well as the cities of Alexandria, Bristol, Charlottesville, Falls Church, Fredericksburg, Hopewell, Petersburg, Radford, Richmond, Waynesboro, Williamsburg, and Winchester, have chosen to remove themselves from the operation of the Sunday-closing law.
According to the undisputed facts, approximately 50% of all employed persons in Virginia work in counties and cities in which the Sunday laws are not in force. Nearly 57% of all employed persons in Virginia work in statutorily exempt businesses and industries. The parties agree that approximately 80% of Virginia workers are exempt from the operation of the law for one reason or the other.
Further, the General Assembly, as a part of the 1974 revision of the Sunday laws, enacted Code §§ 40.1-28.1 through 40.1 -28.5. These provisions require employers to allow each nonmanagerial employee at least 24 consecutive hours of rest in each week. § 40.1-28.1. Such employees may choose Sunday as a day of rest as a matter of right, § 40.1-28.2, and Sabbatarians may choose Saturday, § 40.1-28.3. 3
Code § 40.1-28.5, however, provides that the foregoing laws “shall not apply to persons engaged in any of the industries or businesses enumerated in § 18.2-341(a)(l) through (19), except *144 (15) [‘sale of food, ice and beverages’].” Thus, employees in any of the other 60 or more businesses and industries exempted by the referenced subsections may be denied a day of rest by their employers.
We were first called upon to construe the 1974 statutory scheme in
Bonnie BeLo
v.
Commonwealth,
Noting that businesses engaged in the “sale of food” were exempt from the Sunday-closing law entirely, we held that a food store was permitted, incidental to the operation of its business on Sunday, “to sell such non-food items as are sold in the ordinary and normal course of [its] business.”
Id.
at 87,
The construction we gave to the Sunday law in Bonnie BeLo was the natural and inevitable result of the manifest purpose and clear language of the statute. Nevertheless, the plaintiffs contend that the consequences have been far-reaching, and adverse to them. They point out that any retail store which can successfully contend that it fits into one of the exempt categories may sell on Sunday any merchandise it wishes, including the same items the plaintiffs are forbidden to sell on Sunday. Thus, they say, the present law, unlike its predecessors, draws distinctions between merchants based on the character of the seller, rather than the nature of the items sold. They argue that the present law permits virtually any commodity to be sold on Sunday, but designates those merchants who may sell them and those who may not.
The plaintiffs further complain that the many exemptions contained in the law make it impossible to enforce fairly. The defendant commonwealth’s attorney admits in his pleadings that he en *145 forces the Sunday-closing law only when called upon to do so by “private complaint.” Plaintiffs contend that this state of affairs results in the law being used as a weapon by those who are privileged to do business on Sunday, to prevent would-be competitors from opening on Sunday.
We upheld the 1974 Sunday-closing law against a constitutional challenge based upon the Equal Protection clause of the Fourteenth Amendment to the Federal Constitution in
Malibu Auto Parts
v.
Commonwealth,
Although the plaintiffs here argue that the Sunday-closing law, as applied to them, denies them the “equal protection of the laws,” we adhere to our decision in Malibu Auto Parts and hold that the statutory scheme successfully withstands scrutiny under equal-protection analysis.
Amici curiae,
on brief, argue that the foregoing holding should end our inquiry because this Court, in some of its earlier decisions, has sometimes analyzed statutes under both the special-laws prohibitions of the Virginia Constitution and the Equal Protection clause of the Federal Constitution as though the two were substantially the same.
See, e.g., Standard Drug
v.
General Electric,
*146
It is true that for a long period of our history, the Equal Protection clause was interpreted by both federal and state courts in language that bore marked similarities to the analysis we made of statutes under the special-laws prohibition contained in the Virginia Constitution. But the two are not the same. The Fourteenth Amendment to the Federal Constitution, of which the Equal Protection clause is a part, was declared ratified in 1868, during the period of Reconstruction. Its purpose was the prevention of racial discrimination by state legislatures. Although it was, in later years, extended to apply to other kinds of state legislation, the Supreme Court of the United States has, based upon considerations of federalism, been markedly deferential to state laws which make economic classifications, when those laws have been challenged on Equal Protection grounds.
See, e.g., Whalen
v.
Roe,
By contrast, the special-laws prohibitions contained in the Virginia Constitution are aimed squarely at economic favoritism, and have been so since their inception. Article IV, § 14, of the Virginia Constitution, provides, in pertinent part;
“The General Assembly shall not enact any local, special, or private law in the following cases:
(12) Regulating labor, trade, mining, or manufacturing
(18) Granting to any private corporation . . . any special . . . right, privilege or immunity.”
Article IV, § 15, Va. Const., provides, in pertinent part:
*147 In all cases enumerated in the preceding section, . . . the General Assembly shall enact general laws. Any general law shall be subject to amendment or repeal, but the amendment or partial repeal thereof shall not operate directly or indirectly to enact, and shall not have the effect of enactment of, a special, private, or local law.
No private corporation, association, or individual shall be specially exempted from the operation of any general law, nor shall a general law’s operation be suspended for the benefit of any private corporation, association, or individual.
The foregoing provisions were first adopted as part of §§ 63 and 64 of the Constitution of 1902. They were carried forward into the present Constitution with no substantial change. Their purpose was to correct the perception that the General Assembly, in the nineteenth century, devoted an excessive amount of its time to the furtherance of private interests,
see
I A. Howard, Commentaries on the Constitution of Virginia, 536-37 (1974), and to counter the “sway that moneyed interests were seen to hold over state legislatures at the turn of the century.”
Id.
at 543 (relating specifically to Va. Const, art. IV, § 14 (12), quoted above). “Taken together, the pervading philosophy of Article IV, sections 14 and 15 reflects an effort to avoid favoritism, discrimination, and inequalities in the application of the laws.”
Id.
at 549.
See also Martin’s Ex’rs
v.
Commonwealth,
As noted above, under the Equal Protection clause, both state and federal courts will uphold state laws which make economic classifications “unless ‘the classification rests on grounds
wholly
irrelevant to the achievement of the State’s objective,’ ”
McGowan,
*148
Although all legislative enactments are entitled to a presumption of constitutionality, we have not hesitated to invalidate laws found, upon careful consideration, to violate the prohibitions against special laws.
See, e.g. Riddleberger
v.
Chesapeake Railway,
Accordingly, we do not think that the equal-protection analysis which we made of the Sunday-closing law in
Malibu Auto Parts
is dispositive of the present case. Because of the deference due to acts of the General Assembly, we do not seek out constitutional challenges to statutes and decide them
sua sponte. See MacLellan
v.
Throckmorton,
In proceeding to a special-laws analysis of the Sunday-closing statutory scheme as it is now applied, we return to the tests by which we analyzed its statutory predecessor in
Mandell
v.
Had-don.
According the law the presumption of constitutionality to which it is entitled, we first inquire whether it “affects all persons similarly situated or engaged in the same business throughout the State without discrimination.”
Mandell,
Finally and crucially, we must inquire: does the statutory scheme, as applied, bear “a reasonable and substantial relationship to the object sought to be accomplished by the legislation”?
Id.
at 991,
The plaintiffs make no contention that the General Assembly, in enacting the present Sunday-closing laws in 1974, or in repeatedly amending them thereafter, had any intent to practice invidious discrimination against them, or against anyone. The laws appear facially to be reasonably related to the attainment of the legislative goal. Further, a set of facts can be conceived which would reasonably justify each of the exemptions appended to the statute. Indeed, we cannot say that the entire statutory scheme, or any of its component parts considered alone, creates a classification which rests wholly on grounds unrelated to the attainment of the legislative goal. This is the principal reason we upheld the law against an equal-protection challenge in Malibu Auto Parts, and now reaffirm that holding.
But the plaintiffs do not make a facial attack on the Sunday-closing law. Rather, they argue that it is a special law as applied. They contend that a statutory scheme, which began its life as a general law, has become, by application, a special law by attrition: through subsequent piecemeal steps, each proper in itself, which reduced the ambit of the law to a very few businesses. *150 Among these steps, they point to the local-option feature and the fact that over half the population of the Commonwealth has utilized it to escape the law’s effects entirely; to the construction we necessarily gave the. law in Bonnie BeLo; to the repeated acts of the General Assembly creating additional and broader exemptions culminating in an exemption for nearly any shopping center a local governing body might decide to favor; and finally, to the difficulty of enforcement resulting in prosecutions only on “private complaint.” We agree that none of these steps was in itself improper in any respect, but we further agree that their combined effects have reduced the application of a general law to the kind of special legislation prohibited by Article IV, sections 14 and 15 of the Virginia Constitution.
The framers of Section 64 of the Constitution of 1902 (now art. IV, § 15, quoted above) were well aware of the danger that a general law might be converted into a special law by subsequent events, and to that end provided specific protections against such changes, whether accomplished by amendment, partial repeal, exemption, or suspension of a general law “for the benefit of any private corporation, association, or individual.”
Id.
In
Martin’s Exr’s
v.
Commonwealth,
In earlier decisions, we have held unconstitutional laws which were general when first enacted, but were rendered special by subsequent amendment.
County Bd. of Sup’rs
v.
Am. Trailer Co.,
We will reverse the judgment appealed from. Because the facts before us are sufficient to enable this Court to attain the ends of justice, we will enter final declaratory judgment here. Code § 8.01-681.
Reversed and final judgment.
CARRICO, C.J., dissenting.
Notes
Benderson Development Company, Inc., Best Products Co., Inc., Circuit City Stores, Inc., Hechinger Company, K Mart Corporation, S.L. Nusbaum & Company, Inc., Rose’s Stores, Inc., and Zayre Corp.
As last amended by Acts 1988 c. 666, the statute now reads:
A. On the first day of the week, commonly known and designated as Sunday, no person shall engage in work, labor or business or employ others to engage in work, labor or business except in the following industries or businesses:
1. Transportation by whatever means and supporting facilities;
2. Public services and utilities, manufacturing, processing and plant operation of all types;
3. Publishing, including the distribution and sale of the products thereof;
4. Servicing, fueling and repair of motor vehicles, boats and aircraft, and the selling of parts and supplies therefor;
5. Operation of motion pictures theaters and the production of radio and television programs;
6. Medical services; and other services on an emergency basis;
7. Sports, athletic events and the operation of historic, entertainment and recreational facilities, and the sale or rental of boats, and swimming, fishing and boating equipment;
*142 8. Agriculture, including the operation of nurseries and florist establishments;
9. Preparation and sale of prescription and nonprescription drugs and the sale of medical and hygienic supplies and baby supplies;
10. Wholesale food warehouses and ship chandleries;
11. Restaurants and delicatessens;
12. Janitorial, custodial and like services;
13. Operation of hotels and motels and funeral homes and cemeteries;
14. Mining and supporting facilities;
15. Sale of food, ice and beverages;
16. Sale of tobacco and related products;
17. A drugstore, a majority of the sales receipts of which consist of prescription and nonprescription drugs, health and beauty aids;
18. Sale of novelties, cameras, photographic supplies (including film and flash bulbs), antiques, pictures, paintings, art supplies, souvenirs, animals as pets, including tropical fish, and pet supplies;
19. Sale or leasing of noncommercial real property, mobile homes, and the sale of residential modular, panelized or other prefabricated houses, notwithstanding that such houses are not then erected or constructed on a site;
20. Providing of any service, product or other thing by means of a mechanical device not requiring the labor of any person;
21. Sale of any item, provided such sale takes place on publicly owned property or property designated by the governing body of any county, city or town, on a case-by-case basis, as the site of a festival, trade show, convention, festival market place or other type of public celebration or gathering. The governing body of a county, city or town may extend such a designation to nonpublicly owned property only when more than fifty percent of the area in which sales are made Is used for otherwise exempt activities; and
22. Providing of any service or product by means of a mechanical device requiring only a telephone operator or answerer who may accept, but not process orders.
This section shall not be applicable to works of charity conducted solely for charitable purposes by any person or organization not organized or engaged in business for a profit.
B. Any person violating the provisions of this section shall be guilty of a misdemeanor.
C. Nothing contained herein shall be construed to permit any fine or penalty against any employee or agent who has been caused, directed or authorized by his employer to violate any provision of this section, in which case the employer shall be subject to the sanctions prescribed by this section.
The plaintiffs make no attack on these statutes. They contend that if they are permitted to do business on Sunday, they can do so entirely with employees who volunteer to work on that day. Accordingly, we make no adjudication with respect to Code §§ 40.1-28.1 through 40.1-28.5.
The Attorney General, representing the defendant commonwealth’s attorney, does not make this argument.
