[1, 2] A court of record has inherent power to render judgment on the pleadings where the facts shown and admitted by the pleadings entitle a party to such judgment. Erickson v. Starling, 235 N.C. 643, 71 S.E. 2d 384; Raleigh v. Fisher, 232 N.C. 629, 61 S.E. 2d 897; 71 C.J.S., Pleading, § 424. A motion for such judgment is in the nature of a demurrer and presents the issue of law, Are the matters set up in the pleading of the opposing party sufficient in law to constitute a cause of action or a defense? Jones v. Warren, 274 N.C. 166, 161 S.E. 2d 467; Van Every v. Van Every, 265 N.C. 506, 144 S.E. 2d 603; Erickson v. Starling, supra; Raleigh v. Fisher, supra.
[3, 4] A party who moves for judgment on the pleadings thereby admits, for the purpose of the determination of such motion: (1) The truth of all well-pleaded facts in the pleading of his adversary, together with all fair inferences to be drawn from such facts; and (2) the untruth of his own allegations controverted by the pleading of his adversary. Jones v. Warren, supra; Shaw v. Eaves, 262 N.C. 656, 138 S.E. 2d 520; Erickson v. Starling, supra; Raleigh v. Fisher, supra. He does not thereby admit the conclusions of his adversary stated in such pleading or mere epithets such as “fraud” and “fraudulent.” Jones v. Warren, supra; Van Every v. Van Every, supra; 71 C.J.S., Pleading, § 426.
[5, 6] In determining the motion the court looks only to the pleadings. It hears no evidence, makes no findings of fact and does not take into account other statements of fact in briefs of the parties, or in testimony or allegations by them in a different proceeding. It is limited to the facts properly pleaded in the pleadings before it, inferences reasonably to be drawn from such facts and matters of which the court may take judicial notice. Erickson v. Starling, supra; Strong, N.C. Index 2d, Pleadings, § 38; 71 C.J.S., Pleading, § 426. An exhibit, attached to and made a part of the pleading, is so considered. Van Every v. Van Every, supra. The terms of such exhibit control other allegations of the pleading attempting to paraphrase or construe the exhibit, insofar as these are inconsistent with its terms.
*207 [7, 8] Although a complaint is not demurrable for the reason that it shows upon its face that the cause of action alleged is barred by the statute of limitations, it is well settled in this State that when the defendant pleads the statute of limitations in, his answer, the plaintiff files no reply thereto and the complaint shows upon its face facts which, without more, support such plea in bar, the defendant’s motion for judgment on the pleadings should be granted on that ground. Reidsville v. Burton, 269 N.C. 206, 152 S.E. 2d 147; Acceptance Corp. v. Spencer, 268 N.C. 1, 149 S.E. 2d 570; Van Every v. Van Every, supra; McIntosh, North Carolina Practice & Procedure, 2d ed., § 373, and Phillips’ 1969 pocket parts thereto.
 The trial court is not required to specify its reason for allowing a motion for judgment on the pleadings. Strong, N.C. Index 2d, Pleadings, § 38. If it does state a ground for its judgment which is incorrect, but the judgment was nevertheless proper, it will be affirmed on appeal. Acceptance Corp. v. Spencer, supra. In the Spencer case, judgment on the pleadings was entered dismissing a counterclaim on the ground that it was barred by the statute of limitations, this being the ground therefor stated in the motion. Affirming the judgment, Parker, C.J., speaking for the Court, said:
“Original defendants’ counterclaim is so fatally deficient in substance as against plaintiff that it presents no material issue of fact to support a recovery from plaintiff of damages in the amount of $50,000, or to operate as a setoff against plaintiff’s claim. Consequently, it is subject to a judgment on the pleadings. The judgment on the pleadings should have been granted on the ground that the original defendants’ ■ counterclaim is fatally deficient in substance. Therefore, the granting of the judgment on the pleadings in favor of plaintiff was correct, though it was placed on the wrong ground.”
 In their first further answer, the defendants allege that it appears upon the face of the complaint that the plaintiff seeks to have the assignment by Denson and wife to Crab Orchard on 28 October 1960 declared an assignment for the benefit of creditors, that if such liability exists it is a liability created by statute, that the plaintiff had actual knowledge of the assignment almost seven years prior to the institution of this action and, therefore, her claim is barred by the three-year statute of limitations set forth in G.S. 1-52(2). This is, in form, a sufficient plea of the statute as a bar to the plaintiff’s right of action. Bank v. Warehouse Co., 172 N.C. 602, 90 S.E. 698. It far surpasses the mere assertion, without any allegation of facts to support it, that the plaintiff’s cause of action is *208barred by the statute. Such unsupported assertion has repeatedly been held insufficient to constitute the plea in bar. Lassiter v. Roper, 114 N.C. 17, 18 S.E. 946; Poye v. Andrews, 90 N.C. 401; Humble v. Mebane, 89 N.C. 410.
Consequently, the plaintiff having filed no reply to this plea, we turn to the complaint to see whether: (1) it fails to state facts constituting a cause of action against the defendants, or (2) if it states a cause of action, it also shows facts sufficient in themselves to support the plea that such cause of action is barred by the statute of limitations. If either of these inquiries be answered in favor of the defendants, their motion for judgment on the pleadings was properly allowed, even though the superior court granted it on the second ground only. The Court of Appeals resolved both inquiries in favor of the defendants and affirmed the judgment.
 The Court of Appeals said, “We hold that the facts alleged in the complaint do not constitute an assignment for the benefit of creditors.” We agree.
G.S. 23-1 provides: “Debts mature on execution of assignment; no preferences. — Upon the execution of any voluntary deed of trust or deed of assignment for the benefit of creditors, all debts of the maker thereof shall become due and payable at once, and no such deed of trust or deed of assignment shall contain any preferences of one creditor over another, except as hereinafter stated.”
 It will be observed that this statute does not define an assignment for benefit of creditors but merely forbids a preference in such assignment. We must go, therefore, to the common law, as declared in the decisions of this Court, to determine what constitutes an assignment for the benefit of creditors. In 6 Am. Jur. 2d, Assignments for Benefit of Creditors, § 1, it is said:
“A general assignment for the benefit of creditors is ordinarily a conveyance by a debtor without consideration from the grantee of substantially all his property in trust to collect the amount owing to him, to sell and convey the property, to distribute the proceeds of all the property among his creditors, and to return the surplus, if any, to the debtor.” (Emphasis added.)
 The assignment of 28 October 1960 from Denson and wife to Crab Orchard was, according to the complaint, made in exchange for the simultaneous issue to Denson of 32,260 shares of Crab Orchard stock to Denson. The fair construction of the complaint is that Crab Orchard, a newly formed corporation, had no other assets and no liabilities, except perhaps obligations for nominal amounts for *209organizational expenses. That being true, the shares issued to Den-son, when received by him, had a value equal to the value of the property transferred by him and his wife to Crab Orchard. Thus, at that stage of the proceedings, Denson had available for his creditors as much property as he had prior to the assignment to Crab Orchard. Though he was then insolvent, according to the complaint, it was not unlawful or a violation of any duty owed to the plaintiff or his other creditors for Denson so to change the form of his property, nothing else appearing. Estridge v. Denson, etc., 270 N.C. 556, 565, 155 S.E. 2d 190. The transfer of the certificates to Crab Orchard was for a valuable consideration, moving to Denson from Crab Orchard.
 The assets of a corporation, nothing else appearing, are not held by it in trust. They, like the assets of any other person, may be used by the corporation in the operation of its business. The complaint does not state the objects for which Crab Orchard was incorporated, as set forth in its charter. While, upon this motion for judgment on the pleadings, we may not consider the allegation in the answer to the effect that, at that stage of the proceedings, it was contemplated that Crab Orchard would engage in the real estate business, we may reasonably assume that its charter authorized Crab Orchard to conduct some business. Within the limits of its corporate powers, it was free to use for the carrying on of business the capital acquired by it in exchange for the stock which it issued.
[14, 15] Upon dissolution of the corporation, it would be under a duty first to apply its assets, including such capital, to the payment of its own debts and then to distribute the remainder to its then stockholders, observing the respective rights of the preferred and common shares. Teague v. Furniture Co., 201 N.C. 803, 161 S.E. 530. A corporation may, of course, receive property, other than its capital, upon its agreement to hold it in trust for designated persons. There is, however, at least, serious doubt that a corporation may make a valid contract to hold in trust for specified persons, or a specified group of persons, to whom it is not otherwise obligated, the capital it receives in exchange for its issuance of its own stock, so as to defeat the rights of its own creditors and of transferees of such stock therein. See: Brinson v. Supply Co., 219 N.C. 498, 14 S.E. 2d 505; Teague v. Furniture Co., supra. That question is not presented in the present case, for it appears from the complaint that the agreement between Crab Orchard and Denson was not that it would hold the proceeds of the certificates of deposit in trust for the *210creditors of Denson, but that, in exchange for such certificates, it would issue stock to Denson, which stock he would use to satisfy his own creditors.
The complaint alleges that Denson contracted with Crab Orchard that he would use all of the shares it issued to him for the purpose of satisfying his creditors and would return to it any shares not so used by him. The complaint then alleges that all of the shares issued to Denson by Crab Orchard have been “reissued,” i.e., transferred, by him, including “19,160 shares to unknown creditors.” (Though the answer alleges that, as of the date of its filing, Den-son was still the record owner of a few shares, the brief of the defendants states that these also have now been transferred of record.) Crab Orchard cannot pay over any of its assets to the plaintiff without depleting the fund in which these shareholders are entitled to participate. The complaint does not allege any misconduct or bad faith by any of these shareholders. It does not allege any transfer by Denson to anyone other than a creditor of his. Even if shares of Crab Orchard stock now outstanding are held by or under a transferee from Denson who was not his creditor at the time the stock was issued by Crab Orchard, the complaint alleges no facts which would permit Crab Orchard to deny the right of such person to participate as a shareholder in the final distribution of its assets.
The complaint does not allege that the transfers of the shares by Denson to his creditors were to be on a pro rata basis. Apparently, what was contemplated was simply that Denson, not having access to the funds represented by the pledged certificates of -deposit, converted his' equity therein into 32,260 shares of stock with which he would negotiate, on a case by case basis, settlements with his creditors. It appears from the complaint that this is what he did. In this, there is no basis for an inference that the agreement between Denson and Crab Orchard contemplated that Crab Orchard was to hold the equity in the certificates, or their proceeds, in trust for Denson’s creditors and certainly there is in this no basis for an inference that Crab Orchard was, under any circumstances, to return anything to Denson. Denson parted irrevocably with all his rights in the certificates.
There are decisions by this Court holding a mortgage, given by an insolvent person upon substantially all of his property to secure a preexisting debt so as to prefer the beneficiary of the mortgage over his other creditors, is void as a preferential assignment for the benefit of creditors forbidden by G.S. 23-1. Bank v. Tobacco Co., 188 N.C. 177, 124 S.E. 158; Odom v. Clark, 146 N.C. 544, 60 S.E. *211513; Bank v. Gilmer, 117 N.C. 416, 23 S.E. 333; Bank v. Gilmer, 116 N.C. 684, 22 S.E. 2. It would seem such mortgage is more closely analogous to a voluntary and preferential deed of trust which is also within the condemnation of G.S. 23-1. In any event, our attention has been called to no decision holding that a transfer, by an insolvent, of substantially all of his property to a newly formed corporation in consideration for its issue to him of all of its shares of stock, -is an assignment for benefit of the transferor’s creditors, or-is otherwise affected by G.S. 23-1.
In 6 C.J.S., Assignments for Benefit of Creditors, § 4k, it is said:
“In a sale of property there is a fixed price but no trust, while in an assignment there is a trust and no fixed value given to the property. In a sale there is no reversion or return to the seller, while in an assignment, on the satisfaction of the creditors, a trust results in favor of the assignor in the residue of the unappropriated property or its proceeds.”
The transaction between the Densons and Crab Orchard, as set forth in the complaint, was a sale by the Densons of their interest in the certificates of deposit, not an assignment of those certificates for the benefit of the creditors of Denson.
[16, 17] The plaintiff contends also that her complaint, liberally construed in her favor, as it must be upon a motion for judgment on the pleadings (Tilley v. Tilley, 268 N.C. 630, 151 S.E. 2d 592; Burton v. Reidsville, 240 N.C. 577, 83 S.E. 2d 651), is sufficient to state a cause of action for the enforcement of a constructive trust. The Court of Appeals held that the complaint does not allege facts giving rise to a constructive trust. We agree.
[18-20] A constructive trust is a duty, or relationship, imposed by courts of equity to prevent the unjust enrichment of the holder of title to, or of an interest in, property which such holder acquired through fraud, breach of duty or some other circumstance making it inequitable for him to retain it against the claim of the beneficiary of the constructive trust. Teachey v. Gurley, 214 N.C. 288, 199 S.E. 83; Garner v. Phillips, 229 N.C. 160, 47 S.E. 2d 845; Strong, N.C. Index 2d, Trusts, § 14. Unlike the true assignment for benefit of creditors, which is an express trust, intended as such by the creator thereof, a constructive trust is a fiction of equity, brought into operation to prevent unjust enrichment through the breach of some duty or other wrongdoing. It is an obligation or relationship imposed irrespective of the intent with which such party acquired the property, and in a well-nigh unlimited variety of situations. See: *212 Electric Co. v. Construction Co., 267 N.C. 714, 148 S.E. 2d 856; Speight v. Trust Co., 209 N.C. 563, 183 S.E. 734; Bryant v. Bryant, 193 N.C. 372, 137 S.E. 188; Lee, North Carolina Law of Trusts, § 13a (3rd ed. 1968); 54 Am. Jur., Trusts, § 218; 89 C.J.S., Trusts, §§ 139, 142. Nevertheless, there is a common, indispensable element in the many types of situations out of which a constructive trust is deemed to arise. This common element is some fraud, breach of duty or other wrongdoing by the holder of the property, or by one under whom he claims, the holder, himself, not being a bona fide purchaser for value.
[17, 21] The complaint alleges no fraud or breach of duty by Crab Orchard. Having issued its stock in return for the interest of the Densons in the certificates of deposit, Crab Orchard is a purchaser of that interest for value. It appears from the complaint that, at the time of the assignment to it by the Densons, Crab Orchard was a newly formed corporation completely dominated by Denson and his attorney. They, or their nominees, were its only directors and officers. Consequently, Crab Orchard must be deemed to have acquired the interest in the certificates of deposit with notice of facts then known to Denson, including Denson’s then intent as to his own future control or transfer of the stock issued to him in return for the transfer of his interest in the certificates. See: 54 Am. Jur, Trusts, § 218. However, the complaint does not allege any prior wrongdoing by Denson in the acquisition of his title to the certificates of deposit, nor does it allege any intention by him, at the time of his transfer to Crab Orchard, to deal with the shares of stock unlawfully or in violation of any legal duty owed by him to the plaintiff. Liberally construed in favor of the plaintiff, it alleges that Denson then intended to transfer to his creditors all of the shares issued to him in payment of the claims of such creditors and that he did so.
The allegation in the complaint that Crab Orchard agreed to issue its stock to Denson “for the purpose of satisfying all creditors” of Denson clearly goes beyond the terms of the agreement attached to and made part of the complaint. (Emphasis added.) The agreement speaks for itself and controls the more extensive allegation. Assuming, however, that the complaint correctly interprets the agreement, it expressly negatives the existence of any plan or intent to prefer some creditors of Denson over others at the time the transfer to Crab Orchard occurred. Thus, the transfer to Crab Orchard of the Densons’ interest in the certificates of deposit, which was not, itself, a preference to any creditor of Denson, is not alleged in the *213complaint to have been then intended as a step in carrying out a then contemplated preference.
The preferences of other creditors of Denson over the plaintiff took place when Denson, after his transaction with Crab Orchard, transferred shares of stock, belonging to him, to some of his. creditors without making a comparable payment or transfer to the plaintiff. Crab Orchard having acquired its interest in the certificates of deposit for value and without notice of any intent of Denson’s to make a preferential transfer of the proceeds of his transaction with it, Crab Orchard’s right to hold the property so acquired by it cannot be affected by a wrongful act subsequently planned and executed by Denson. Especially is this true where, as here, to impose a constructive trust upon the property would defeat or impair the right of subsequent bona fide purchasers of the shares from Denson. There is nothing whatever in the complaint to suggest that any of the “unknown creditors” to whom Denson transferred shares did not acquire those shares in complete good faith and in ignorance of any right of the plaintiff. Having accepted the shares in satisfaction of their claims against Denson, they are purchasers for value.
The complaint alleges no preferential transfer to Crab Orchard or by Crab Orchard or in which Crab Orchard participated. Each preference alleged in the complaint occurred when Denson transferred stock to his creditors, which was after Crab Orchard acquired its interest in the certificates of deposit. No such preference can be the basis for a declaration that Crab Orchard now holds as constructive trustee the interest in the certificates of deposit transferred to it by Denson at a time when, according to the complaint, no such preference was contemplated.
The allegations in the complaint, with reference to the transfer to R. S. Pate of a portion of Crab Orchard’s interest in the certificates of deposit, do not allege any violation by Crab Orchard of any duty to or right of the plaintiff. Pate, not being a party to this action, no judgment rendered herein could affect his right to retain the property so transferred to him. It appears from the complaint that Crab Orchard made such transfer to Pate in settlement of its own controversy with him, in which Pate threatened to sue Crab Orchard upon a theory similar to that now asserted by the plaintiff. The complaint does not allege that Crab Orchard made its settlement with Pate in bad faith. If, however, such settlement be assumed to have been wrongful, the wrong done thereby was not to the plaintiff but to the creditors, if any, of Crab Orchard and to the stockholders of Crab Orchard. The plaintiff was neither.
*214  The Court of Appeals held that, assuming the transfer by the Densons to Crab Orchard to be an assignment for the benefit of creditors forbidden by G.S. 23-1, the plaintiff's right to maintain this action on that ground is barred by the statute of limitations contained in G.S. 1-52(2), which provides that an action is barred within three years when “upon a liability created by statute, other than a penalty or forfeiture, unless some other time is mentioned in the statute creating it.” Again, we agree.
[23, 24] Ordinarily, the period of the statute of limitations begins to run when the plaintiff’s right to maintain an action for the wrong alleged accrues. The cause of action accrues when the wrong is complete, even though the injured party did not then know the wrong had been committed. Jewell v. Price, 264 N.C. 459, 142 S.E. 2d 1; Motor Lines v. General Motors Corp., 258 N.C. 323, 128 S.E. 2d 413; Lewis v. Shaver, 236 N.C. 510, 73 S.E. 2d 320. The plaintiff contends that this rule does not apply here for the reason that her action is “on the ground of fraud” and so the statute of limitations does not begin to run until the discovery by her of the facts constituting the fraud. See G.S. 1-52(9). In Vail v. Vail, 233 N.C. 109, 63 S.E. 2d 202, this Court held that a cause of action to set aside an instrument for fraud accrues and the statute of limitations thereon begins to run "when the aggrieved party discovers the facts constituting the fraud, or when, in the exercise of reasonable diligence, such facts should have been discovered.” (Emphasis added.)
 It is a sufficient answer to the plaintiff’s contention in this respect to note that her complaint alleges that she had no notice of the matters of which she complains “until after November 24, 1961 when the plaintiff brought supplemental proceedings under G.S. 1-352 et seq., and Judge Campbell ordered First Federal and Denson and Crab Orchard to be examined.” (Emphasis added.) It thus appears upon the face of the complaint that the transfer from the Densons to Crab Orchard, of which the plaintiff complains, occurred 28 October 1960 and that the plaintiff acquired knowledge of Crab Orchard’s existence and of some connection between Crab Orchard and the certificates of deposit as early as 24 November 1961, nearly six years prior to the institution of this action. If she did not then have actual knowledge of all facts now alleged in her complaint, reasonable diligence would thus have disclosed them to her. The fact that, in the meantime, she, in good faith, pursued another remedy, which turned out to be unavailable (See, Wilson v. Den-son, 270 N.C. 556, 155 S.E. 2d 190), does not extend the time allowed by the statute for the institution of the present action.
*215The complaint alleges no cause of action against the defendant Frost. No act of his is mentioned therein except that he, as a stockholder of Crab Orchard, signed the agreement with Pate on 31 December 1960, two months after the transfer from the Densons to Crab Orchard. The only other reference in the complaint to Frost is the statement that at some undesignated time, possibly at the time of the transfer from the Densons to Crab Orchard, he was the treasurer “or other officer” of Crab Orchard and “later” became its president.
 The complaint alleges no cause of action against the defendant Olive. No act by him is alleged in the complaint except that, as the secretary of Crab Orchard, he signed its agreement with Pate and, as attorney for Denson, he participated in the formation of Crab Orchard, was one of its incorporators, stockholders and directors and “became” its secretary. The complaint alleges that Olive, as such attorney, formed Crab Orchard “for the purpose of ‘getting the creditors off the back of Fred Denson’ ” and 3,000 shares of Crab Orchard stock were “issued” to Olive “for forming the corporation and the plan,” by which it appears to be meant that these shares were transferred to Olive by Denson. It is alleged that, as secretary of the corporation, Olive participated in the “assignment” (i.e., issue) of “all shares of corporate stock in Crab Orchard to Fred Denson and Leitha B. Denson.”
Service of summons was not had upon the defendant Denson so no judgment could be rendered in this action against him. In any event, the complaint discloses that the. plaintiff has already recovered judgment against Denson for the full amount of her claim.
There was, therefore, no error in the granting of the motion of the defendants Crab Orchard, Olive and Frost for judgment on the pleadings.
Moore, J., did not participate in the consideration or decision of this case.