The plaintiff, Bolton Corporation [hereafter Bolton], was the contractor responsible for installing the heating, ventilating and air conditioning system for the Walter R. Davis Library at the University of North Carolina at Chapel Hill. The defendant, T. A. Loving Company [hereafter Loving], the general contractor, was designated “Project Expediter” and was responsible for scheduling and coordinating the work of all the contractors. Both had fixed price contracts calling for completion in 930 days, which would have been early April of 1982. The work was completed in August of 1983, some 480 days late.
On 16 November 1983 the plaintiff shed the defendant for costs in excess of $350,000 which it claimed were the result of defendant’s failure to schedule work properly so that plaintiffs work could be finished within the allotted 930 days. The plaintiff alleged breach of Loving’s contract with the State, of which Bolton was an intended (later amended to read “direct”) beneficiary, negligent breach of a common law duty of care flowing from the working relationship between plaintiff and defendant and breach of a common law duty of due care in the performance of its contract with the State.
On 23 January 1984 the defendant filed its answer, which included a motion to dismiss pursuant to Rule 12(b)(6) of the North Carolina Rules of Civil Procedure, various defenses, and a counterclaim for breach of contract and negligent performance of work by plaintiff under its contract, specifically claiming that Bolton had caused a 62-day delay by negligently damaging a water line that flooded the construction project and that Bolton had not paid its pro rata share of the power bills from April to August 1983, in the amount of $3,246.69.
On 2 February 1984 plaintiffs counsel notified plaintiffs liability insurer, Aetna Casualty & Surety Company, of the coun*625terclaim. The insurance company responded that Loving’s claim regarding the broken water line had been settled. On 21 February 1984, without approval of the plaintiff, Aetna paid $136,445.29 to the defendant and obtained from the defendant a “Release in Full” executed by the defendant’s Executive Vice-President. The release stated that it released Bolton and Aetna Casualty & Surety Company from
all claims, demands, damages, actions, or causes of action, on account of damage to property, The Central Library, Chapel Hill, N.C. which occurred on or about the 14th day of April, 1983, by reason of water pipe breaking and of and for all claims or demands whatsoever in law or in equity, which it and its successors can, shall or may have by reason of any matter, cause or thing whatsoever prior to the date hereof.
The release concluded with the following preprinted wording on the form:
It is Further Understood and Agreed that any party hereby released admits no liability to the undersigned or any others, shall not be estopped or otherwise barred from asserting, and expressly reserves the right to assert any claim or cause of action such party may have against the undersigned or any others.
On 22 February 1984 the plaintiff filed a reply to defendant’s counterclaim alleging, inter alia, “that any recovery sought is barred by the doctrine of accord and satisfaction, settlement and release.”
On 30 August 1984 Judge Brannon denied the defendant’s Rule 12(b)(6) motion to dismiss. On 13 September 1984, he granted the defendant’s motion for summary judgment. In the same order he stated that he had reconsidered the motion to dismiss and “now renews [the] determination that such motions should be denied,” but he asked that if the appellate courts determined that summary judgment should not have been granted, in the interest of judicial economy they also rule on the correctness of his denial of the motion to dismiss. As reflected in the briefs before this Court, the motion to dismiss is based upon the defendant’s contentions that:
*626(1) the State of North Carolina cannot legally delegate the duty to coordinate contracts governed by N.C.G.S. § 143-128; and
(2) the plaintiffs claim of negligent performance of contract does not allege property damage, and negligent performance of a contract does not give rise to a cause of action in tort against the promisor unless the negligence causes personal injury or property damage.
Because the Court of Appeals affirmed entry of summary judgment in favor of the defendant, it was not necessary for it to consider the trial judge’s ruling on the motion to dismiss.
In considering the summary judgment order, the Court of Appeals noted that it was undisputed that Bolton had not consented to Aetna’s settlement of Loving’s claim against Bolton for the water damage, but it said that by pleading the settlement in its reply to defendant’s counterclaim, Bolton ratified the settlement, thereby barring its own claims against defendant, citing Keith v. Glenn, 262 N.C. 284, 136 S.E. 2d 665 (1964). The Court of Appeals noted that if the plaintiff had not elected to ratify the settlement, it could have preserved its right of action against the defendant, citing Bradford v. Kelly, 260 N.C. 382, 132 S.E. 2d 886 (1963) and McKinney v. Morrow, 18 N.C. App. 282, 196 S.E. 2d 585, cert. denied, 283 N.C. 665, 197 S.E. 2d 874 (1973).
The Court of Appeals also said that plaintiffs reliance on the reservation of rights language in the settlement “would have validity” if plaintiff had “been a true party to the settlement, that is, if plaintiff had consented to the settlement at the time the ‘Release in Full’ was executed . . . .” 77 N.C. App. at 96, 334 S.E. 2d at 499. However, because the plaintiff did not consent to the settlement when the release was executed, the Court of Appeals said that the reservation of rights language “is merely a restatement of the law concerning a nonconsenting insured’s rights: that by not consenting to its insurer’s settlement and release, it retained its right to pursue any claims it may have against the defendant. However, once plaintiff ratified the compromise settlement, it gave up this right.” Id.
The case of Keith v. Glenn, 262 N.C. 284, 136 S.E. 2d 665, primarily relied upon by the Court of Appeals in reaching its decision, involves claims arising from an automobile accident. In the *627context of a single automobile collision, the reason for the rule that ratification of a settlement of claims against the insured bars the insured’s claim is obvious. If the plaintiff has ratified a settlement paying the defendant for injuries allegedly resulting from the plaintiff s negligence, it would be factually inconsistent for the plaintiff then to be allowed to recover against the defendant in a jurisdiction where contributory negligence is a total bar to recovery. As we said in Snyder v. Oil Co., 235 N.C. 119, 120, 68 S.E. 2d 805, 806 (1952):
By said compromise settlement each party bought his peace respecting any liability created by the collision. The adjustment of said claim by the payment of the amount agreed constituted an acknowledgment, as between the parties, of the liability of the oil company, and the nonliability, or at least a waiver of the liability, of the defendant Dixon.
In the case sub judice, instead of a single incident, an accident, we have an ongoing contractual relationship and multiple transactions. It is possible that the defendant caused delays to the work, resulting in cost overruns for the plaintiff, that were totally unrelated to any delays from the broken water line. In fact, the water line was not broken until well after the original completion date had been missed. By saying that the reservation of rights clause has no effect, we would be saying that for the price of settling the issue of its liability resulting from the broken water pipe, the plaintiff gave up all of its own completely unrelated claims against the defendant, even though the settlement agreement did not so provide. There is no logical reason for making the rule in automobile accident cases apply to the situation here.
In addition, by not giving effect to the reservation of rights language, we would be saying that it is legally impossible for parties to settle only one aspect of a multi-faceted dispute. There also is no logical reason for such a rule.
Finally, we note that in the cases cited by the defendant and relied upon by the Court of Appeals there was no reservation of rights language in the settlement documents signed by the party claiming that ratification barred the other party’s claim. We disagree with the Court of Appeals’ holding that the reservation of rights language had no effect but was merely an acknowledgment *628of the rule of law that a release between an insured’s insurance company and a claimant does not bind the insured unless ratified. The reservation of rights clause does not purport to reserve claims or causes of action only if the party released does not ratify the release; it reserves them completely. When the plaintiff ratified the release by pleading it as a defense to the counterclaim, it ratified the entire agreement, including the reservation of rights. We hold that such language should be given effect. “Whether denominated accord and satisfaction or compromise and settlement, the executed agreement terminating or purporting to terminate a controversy is a contract, to be interpreted and tested by established rules relating to contracts.” Casualty Co. v. Teer Co., 250 N.C. 547, 550, 109 S.E. 2d 171, 173 (1959). As Justice (now Chief Justice) Branch said in Adder v. Holman & Moody, Inc., 288 N.C. 484, 492, 219 S.E. 2d 190, 195-96 (1975),
A release is the giving up or abandoning of a claim or right to the person against whom the claim exists or the right is to be exercised .... Whether this agreement be called a release, a waiver or be given some other designation is not important to our decision. Obviously defendant’s Exhibit “A” is a contract and is therefore subject to the recognized rules of construction of contracts.
The heart of a contract is the intention of the parties. The intention of the parties must be determined from the language of the contract, the purposes of the contract, the subject matter and the situation of the parties at the time the contract is executed.
In Adder this Court held that the contract by which the plaintiff had acknowledged that he had no defenses or set-offs against his indebtedness to the defendant for labor and parts to renovate the plaintiffs car did not bar the plaintiffs affirmative claims against the defendant, for “[n]owhere in the contract is there any reference to a release of plaintiffs pending claims based on negligence or implied warranty.” Id. at 493, 219 S.E. 2d at 196.
All parts of a contract are to be given effect if possible. It is presumed that each part of the contract means something. Robbins v. Trading Post, 253 N.C. 474, 477, 117 S.E. 2d 438, 440-41 (1960). In Electric Supply Co. v. Burgess, 223 N.C. 97, 25 S.E. 2d 390 (1943), this Court gave effect to a provision in a general re*629lease of a principal and a surety on a construction contract that reserved rights against the principal for certain items, quoting with approval the following from 23 R.C.L., 389, sec. 26:
“Great liberality is allowed in construing releases. The intent is to be sought from the whole and every part of the instrument; and where general words are used, if it appears by other clauses of the instrument, or other documents, definitely referred to, that it was the intent of the parties to limit the discharge to particular claims only, courts, in construing it, will so limit it.”
Id. at 100, 25 S.E. 2d at 392.
Although the document at issue in the instant case was between Aetna and Loving, the reservation of rights clause applied to “any party hereby released,” and the release is specifically of “Bolton Corporation and their representatives, Aetna Casualty & Surety Co.” Bolton ratified the release by pleading it as a defense to the counterclaim and as a result may not claim that delay and damage caused by the broken water line was Loving’s responsibility. Keith v. Glenn, 262 N.C. 284, 136 S.E. 2d 664; Patterson v. Lynch, Inc. 266 N.C. 489, 146 S.E. 2d 390 (1966).
In the instant case, according to the terms of the “Release in Full,” in exchange for the payment of $136,445.29, Loving has surrendered all of its claims against Bolton arising prior to the date of execution of the release; Bolton has retained its right to pursue its claims against Loving. Loving caused the release agreement to be executed after the suit and counterclaim had been filed. Presumably defendant knew what the contract provided and was satisfied with its terms.
Because the reservation of rights in the release is to be given effect, summary judgment should not have been granted in favor of the defendant. We therefore reverse the Court of Appeals. Because of its disposition of the summary judgment issue, the Court of Appeals did not reach the question of whether to review the trial court’s denial of the defendant’s Rule 12(b)(6) motion to dismiss. A ruling denying a motion to dismiss pursuant to N.C.G.S. § 1A-1, Rule 12(b)(6) is ordinarily a nonappealable interlocutory order. State v. School, 299 N.C. 351, 261 S.E. 2d 908, aff’d on rehearing, 299 N.C. 731, 265 S.E. 2d 387, appeal dismissed, 449 *630U.S. 807, 66 L.Ed. 2d 11 (1980). The ruling by the trial judge in this case does not affect a substantial right of the defendant which cannot be later protected by a timely appeal. Therefore, we decline the invitation of the trial judge to entertain an appeal from his denial of the defendant’s motion to dismiss.
This case is remanded to the Court of Appeals for further remand to the trial court for further proceedings.
Reversed and remanded.