Arlyn W. Ploen commenced two actions for declaratory judgment in the district court for Dodge County, one against Union Insurance Company (Union) and the other against Union and Shelter Mutual Insurance Company (Shelter). On April 23, 1996, the district court sustained Union’s motion for summary judgment and overruled Ploen’s cross-motion for summary judgment. On the same date, the court sustained the motions for summary judgment of Union and Shelter and overruled Ploen’s cross-motion for summary judgment. Ploen appeals, and the cases have been consolidated for purposes of appeal.
SCOPE OF REVIEW
Whether a statute is constitutional is a question of law; accordingly, the Nebraska Supreme Court is obligated to reach a conclusion independent of the decision reached by the court below. State v. Severin, 250 Neb. 841, 553 N.W.2d 452 (1996); Kuchar v. Krings, 248 Neb. 995, 540 N.W.2d 582 (1995).
*869The interpretation and construction of an insurance contract or policy involve questions of law, in connection with which an appellate court has an obligation to reach its conclusions independent of the determinations made by the court below. Kast v. American-Amicable Life Ins. Co., 251 Neb. 698, 559 N.W.2d 460 (1997).
In reviewing a summary judgment, an appellate court views the evidence in a light most favorable to the party against whom judgment is granted and gives such party the benefit of all reasonable inferences deducible from the evidence. Kramer v. Kramer, 252 Neb. 526, 567 N.W.2d 100 (1997).
FACTS
On December 24, 1991, Ploen was a passenger in a car owned and operated by his father. The car was hit from behind by a car driven by Karen Keller, and Ploen allegedly suffered back injuries as a result of the accident. Ploen sued Keller, who admitted liability, and the parties eventually settled for $54,000 of Keller’s policy liability limit of $100,000. However, Ploen alleges that his damages total at least $250,000.
Ploen was covered by his father’s policy with Union for $5,000 in medical payments and $25,000 in underinsured motorist benefits. He was also covered by his own policy with Shelter for $25,000 in medical payments and $100,000 in underinsured motorist benefits. Ploen alleges that as a result of the accident, he incurred medical expenses in the amount of at least $50,364. Union paid to or on behalf of Ploen $5,000 in medical payments, and Shelter paid $25,000 to Ploen for medical payments.
Prior to his settlement with Keller, Ploen requested that Union and Shelter give their consent to the proposed settlement agreement and requested that Union and Shelter waive their subrogation interests. Both companies denied such requests on the basis that Ploen should not settle for less than Keller’s policy limit if his damages were indeed $250,000.
Thereafter, Ploen filed petitions for declaratory judgment against Union and Shelter. In its answer denying liability for underinsured coverage and asserting subrogation rights, Union relied on its contractual provision stating that recovery will be *870had only after “the limits of liability under any applicable bodily injury liability bonds or policies have been exhausted by payment of judgments or settlements.” Shelter relied on its contractual provision stating that it was obligated to pay only such damages as “are in excess of the total limits of all bodily injury liability insurance policies and bonds applicable to the person or persons legally responsible for such damages and available to cover the insured’s damages.” Union and Shelter also asserted that Ploen had breached the insurance contracts by settling without their written consent.
Union and Shelter each moved for summary judgment, and Ploen filed cross-motions for summary judgment. The district court sustained Union’s and Shelter’s motions for summary judgment, overruled Ploen’s cross-motions for summary judgment, and dismissed the lawsuits. In so doing, the court specifically found that Neb. Rev. Stat. § 44-3,128.01 (Reissue 1993), a statute providing for subrogation of medical payments, is constitutional. Ploen timely appealed the orders granting summary judgments to Union and Shelter and overruling his cross-motions for summary judgment.
ASSIGNMENTS OF ERROR
Ploen makes the following assignments of error: (1) The district court erred in finding that Ploen’s settlement with Keller adversely affected Union and Shelter, (2) the court erred in finding that § 44-3,128.01 is constitutional, and (3) the court erred in sustaining Union’s and Shelter’s motions for summary judgment and overruling Ploen’s cross-motions for summary judgment.
ANALYSIS
Subrogation for Medical Payments
We first address whether Union and Shelter are able to subrogate for the medical payments made to or on behalf of Ploen. In support of their right to subrogate, Union and Shelter rely on § 44-3,128.01, which provides:
A provision in an automobile liability policy or endorsement which is effective in this state and which grants the insurer the right of subrogation for payment of *871benefits under the medical payments coverage portion of the policy shall be valid and enforceable, except that if the claimant receives less than actual economic loss from all parties liable for the bodily injuries, subrogation of medical payments shall be allowed in the same proportion that the medical expenses bear to the total economic loss. For purposes of this section, it shall be conclusively presumed that any settlement or judgment which is less than the policy limits of any applicable liability insurance coverage constitutes complete recovery of actual economic loss.
In Shelter Ins. Cos. v. Frohlich, 243 Neb. 111, 122, 498 N.W.2d 74, 81 (1993), we explained that “in the absence of a valid contractual provision or statute to the contrary, an insurer may exercise its right of subrogation only when the insured has obtained an amount that exceeds the insured’s loss.” Therefore, if § 44-3,128.01 is invalid, a question of material fact would exist as to whether Ploen had obtained an amount that exceeded his loss, and Union and Shelter would not be entitled to summary judgments on this issue.
Ploen argues that § 44-3,128.01 violates due process by creating an irrebuttable presumption that settlement for less than the tort-feasor’s coverage equals full recovery. In Elliott v. Ehrlich, 203 Neb. 790, 797-98, 280 N.W.2d 637, 642 (1979), we stated that “[statutes creating a permanent irrebuttable presumption have long been disfavored under the Due Process Clauses of the Fifth and Fourteenth Amendments.” We held that a regulatory provision by the Nebraska Department of Public Welfare which stated that the responsibility of parents for pregnant minors included responsibility for unborn children, insofar as it created an irrebuttable presumption that the maternal grandparent actually contributes all the income required for the needs of the unborn child, was unconstitutional. We recognized that welfare benefits are a matter of statutory entitlement for persons qualified to receive them and that their termination involves state action that adjudicates important rights. We thus held that “[t]he state’s interest in administrative ease and certainty cannot save the conclusive presumption of the regulation from invalidity under the Due Process Clause where there are other reasonable and practicable means of establishing the per*872tinent facts of actual contribution.” Elliott, 203 Neb. at 798, 280 N.W.2d at 642.
In contrast to Elliott, in Haven Home, Inc. v. Department of Pub. Welfare, 216 Neb. 731, 346 N.W.2d 225 (1984), the appellant contended that a provision of the Social Security Act created an irrebuttable presumption that nursing homes which are not at least 85 percent occupied (or 50 percent in the case of new construction) are inefficient and uneconomical. We explained that social welfare legislation and regulation are treated differently:
Classifications are upheld where no constitutionally protected right of status is significantly impaired, and where the classification bears a rational relationship to a legitimate legislative goal. In such cases classifications to avoid administrative difficulty of individual determinations in every case are proper, even though the classifications adopted are neither necessary nor universally true.
Id. at 735-36, 346 N.W.2d at 229, citing Weinberger v. Salfi, 422 U.S. 749, 95 S. Ct. 2457, 45 L. Ed. 2d 522 (1975).
In Weinberger, the Court upheld an irrebuttable presumption for purposes of Social Security benefits that any marriage not preceding a wage earner’s death by at least 9 months was a sham. Weinberger illustrates the distinction between Haven Home, Inc. and Elliott. In Weinberger, the Court distinguished cases regarding legislative decisions regulating the private sector of the economy and public treasury from cases involving constitutionally protected rights such as the right to conceive and raise one’s children, residency, or the freedom of personal choice in matters of marriage and family life.
In cases involving constitutionally protected rights, a challenged irrebuttable presumption under the 5th Amendment Due Process Clause must meet the applicable 14th Amendment standard. In contrast, other irrebuttable classifications need meet only the standard of legislative reasonableness. See Weinberger v. Salfi, supra. Under the standard of legislative reasonableness, the Legislature’s action is sufficient if it is rationally based and free from invidious discrimination. See, State v. Garber, 249 Neb. 648, 545 N.W.2d 75 (1996); Otto v. Hahn, 209 Neb. 114, 306 N.W.2d 587 (1981).
*873The right to settle with a tort-feasor for less than the tortfeasor’s policy limit without one’s insurer’s consent does not approach a constitutionally recognizable right, and Ploen does not make such a contention. Therefore, we consider whether the irrebuttable presumption found in § 44-3,128.01 is rationally based and free from invidious discrimination. See Dandridge v. Williams, 397 U.S. 471, 90 S. Ct. 1153, 25 L. Ed. 2d 491 (1970). In enacting § 44-3 128.01, the Legislature reached a compromise between the concern that persons injured be fully compensated in spite of subrogation clauses attempting to receive a portion of a limited recovery and the concern that insureds not be able to obtain a double recovery at the expense of insurers. There is no evidence that the statute is discriminatory.
Whether a statute is constitutional is a question of law; accordingly, the Nebraska Supreme Court is obligated to reach a conclusion independent of the decision reached by the court below. State v. Severin, 250 Neb. 841, 553 N.W.2d 452 (1996); Kuchar v. Krings, 248 Neb. 995, 540 N.W.2d 582 (1995). We conclude that § 44-3, 128.01 meets the standard of legislative reasonableness and is therefore constitutional and enforceable by Union and Shelter as to their right of subrogation for medical payments.
Liability for Underinsured Benefits
Next, we address whether Ploen is entitled to underinsured benefits from either Union or Shelter. Ploen argues that since he seeks only the difference between the policy limit and his damages, his settlement with the tort-feasor for less than the policy limit did not adversely affect Union’s or Shelter’s rights. In Horace Mann Cos. v. Pinaire, 248 Neb. 640, 538 N.W.2d 168 (1995), we stated that under the terms of the Underinsured Motorist Insurance Coverage Act, an insurer could avoid its policy obligation only if the insured’s settlement with the tort-feasor adversely affected the insurer’s rights. Neb. Rev. Stat. § 60-582 (Reissue 1993), which was in effect at the time of the accident, provided that the underinsured motorist coverages shall not apply where the insured settles without the insurer’s consent if such settlement adversely affects the rights of the insurer.
*874We first consider Ploen’s policy with Shelter. Shelter failed to file a brief in this court. The only indication that Shelter may have been adversely affected by Ploen’s settlement was Union’s assertion at oral argument, allegedly on Shelter’s behalf, that the policy with Shelter contained a clause prohibiting the insured from settling with a tort-feasor for less than the tortfeasor’s policy liability limit. Shelter’s policy contained a provision which stated:
[T]he limits of liability of this coverage shall be reduced by the total limits of all bodily injury liability insurance policies and bonds applicable to the person or persons legally responsible for such damages. Our obligation hereunder shall apply only to such damages as are in excess of the total limits of all bodily injury liability insurance policies and bonds applicable to the person or persons legally responsible for such damages and available to cover the insured’s damages.
Interpretation and construction of an insurance contract or policy involve questions of law, in connection with which an appellate court has an obligation to reach its conclusions independent of the determinations made by the court below. Kast v. American-Amicable Life Ins. Co., 251 Neb. 698, 559 N.W.2d 460 (1997). When the terms of an insurance contract are clear, the court may not resort to rules of construction, and the terms are to be accorded their plain and ordinary meaning as an ordinary or reasonable person would understand them. In such a case, the court shall seek to ascertain the intention of the parties from the plain meaning of the policy. Id.
We conclude that Shelter’s policy does not require that the insured must exhaust the tort-feasor’s liability policy in order to assert a claim for underinsured motorist benefits. We do not address whether Shelter may have been adversely affected by Ploen’s settlement with the tort-feasor.
Having determined that the policy does not preclude Ploen from settling for less than the tort-feasor’s policy limit, we conclude that a material question of fact exists as to whether Ploen can recover under the provisions of Shelter’s underinsured motorist policy and that the district court erred in granting summary judgment to Shelter.
*875We next address Ploen’s contention that he is entitled to summary judgment on his cross-motion because the amount of his damages is undisputed. In arguing that his damages are undisputed, Ploen relies on Union’s and Shelter’s failure to controvert his affidavit which stated that his damages were in excess of $250,000. Ploen’s affidavit sets forth an opinion as to the amount of damages, but it does not establish damages as a matter of law. Statements in affidavits as to opinion, belief, or conclusions of law are of no effect. Whalen v. U S West Communications, ante p. 334, 570 N.W.2d 531 (1997). The court properly overruled Ploen’s cross-motions for summary judgment, because a question of fact exists as to the nature and extent of Ploen’s injuries and the amount of his damages sustained as a result of such injuries.
We next address Ploen’s policy with Union, which stated: “We will pay under this coverage only after the limits of liability under any applicable bodily injury liability bonds or policies have been exhausted by payment of judgments or settlements.” Ploen argues that despite this clear language, the provision in question is void as against public policy.
Some courts have held similar provisions to be against public policy. In Schmidt v. Clothier, 338 N.W.2d 256 (Minn. 1983), for example, the court held that automobile insurance policy provisions requiring an insured to exhaust the tortfeasor’s liability limits before underinsured benefits are available were void as against public policy of the no-fault automobile insurance act. The court explained:
The purposes of the no-fault act . . . include those of easing the burden of litigation and encouraging prompt payment of claims. Enforcement of policy exhaustion clauses would produce results contrary to those purposes. It could serve to force an insured to litigate the claim to final judgment in order to exhaust the policy limits. Litigation expenses would lessen the insured’s net recovery, the time involved in litigation would serve to delay payment to the insured, and the litigation itself would unnecessarily burden our court system. Where the best settlement available is less than the defendant’s liability limits, the insured should not be forced to forego [sic] settle*876ment and go to trial in order to determine the issue of damages. The insured has the right to accept what he or she considers the best settlement available and to proceed to arbitrate the underinsurance claim for a determination of whether the damages do indeed exceed the tortfeasor’s liability limits.
Id. at 260-61. See, also, Shaw v. Continental Ins. Co., 108 Nev. 928, 840 P.2d 592 (1992).
In contrast, at least one court has held under a provision similar to the one found in Union’s policy that the insured’s failure to exhaust the limits of the tort-feasor’s liability policy precluded the insured from recovering underinsured motorist benefits. See Ciarelli v. Commercial Union Ins. Cos., 234 Conn. 807, 663 A.2d 377 (1995).
The parties to an insurance contract may make the contract in any legal form they desire, and in the absence of statutory provisions to the contrary, insurance companies have the same right as individuals to limit their liability and to impose whatever restrictions and conditions they please upon their obligations, not inconsistent with public policy. Safeco Ins. Co. of America v. Husker Aviation, Inc., 211 Neb. 21, 317 N.W.2d 745 (1982); Lonsdale v. Union Ins. Co., 167 Neb. 56, 91 N.W.2d 245 (1958). From our review of the Uninsured and Underinsured Motorist Insurance Coverage Act, Neb. Rev. Stat. § 44-6401 et seq. (Cum. Supp. 1996 & Supp. 1997), previously codified as the Underinsured Motorist Insurance Coverage Act, Neb. Rev. Stat. § 60-571 et seq. (Reissue 1993), we conclude that Union’s underinsured motorist coverage is consistent with the requirements of the act and is not contrary to the law. Having made this conclusion, we consider Union’s provision to determine whether or not it is contrary to public policy.
Public policy is that principle of the law which holds that no subject can lawfully do that which has a tendency to be injurious to the public or against the public good, the principles under which the freedom of contract or private dealings are restricted by law for the good of the community. Southern Neb. Rural P.P. Dist. v. Nebraska Electric, 249 Neb. 913, 546 N.W.2d 315 (1996); New Light Co. v. Wells Fargo Alarm Servs., 247 Neb. 57, 525 N.W.2d 25 (1994). The determination of whether a con*877tract violates public policy presents a question of law. Jasper v. Smith, 540 N.W.2d 399 (S.D. 1995).
Uninsured motorist coverage laws were enacted for the benefit of innocent victims of financially irresponsible motorists. See Lane v. State Farm Mut. Automobile Ins. Co., 209 Neb. 396, 308 N.W.2d 503 (1981). Underinsured motorist coverage indemnifies an insured when a tort-feasor’s insurance coverage is inadequate. Union’s policy provides that it will pay underinsured motorist benefits “only after the limits of liability under any applicable bodily injury liability bonds or policies have been exhausted . . . .” On the basis of the facts applicable to the policy in issue, we conclude that Union’s restriction is plain and unambiguous, should be enforced according to its terms, and is not contrary to public policy.
While noting the concern that a provision such as Union’s might encourage an insured to litigate against the tort-feasor rather than settle, we also note the insurer’s concern that the insured settle with the tort-feasor for the maximum amount possible before the insured is allowed to seek underinsured benefits. We believe that such a determination with regard to public policy is better left to the wisdom of the Legislature. Since Union’s policy is valid and enforceable as to its underinsured motorist coverage, we do not consider whether Ploen’s settlement with the tort-feasor adversely affected Union’s rights under the policy. We therefore affirm the judgment of the district court granting summary judgment to Union.
CONCLUSION
The summary judgment in favor of Shelter is reversed on the issue of underinsured benefits, and the cause is remanded for further proceedings. The summary judgment in favor of Union is affirmed.
Affirmed in part, and in part reversed and REMANDED FOR FURTHER PROCEEDINGS.