The precise point presented by the appeal was determined by us in Cornell v. Donovan, 14 Daly, 295; and we are concluded by that decision unless, upon consideration, we find the contrary adjudication by the general term of the supreme court, first department, in Furber v. McCarthy, 7 N. Y. Supp. 613, to be supported by the sounder reason. We do not so find, but, on the contrary, we are of opinion that our own ruling is sustained by the obvious intént of the Code, as well as by the principles and analogies of the law. The single question in controversy is whether an action on an undertaking to obtain an attachment be an action on contract, within the purview of subdivision 2, § 501, Code Civil Proc. The provisions of the Code allowing counter-claims, like the similar provisions of the English law, are designed to lessen the burdens and to facilitate the operation of remedial justice, and accordingly should receive a liberal construction in aid of their beneficent policy. Obviously, their aim would be defeated if the language of the statute be taken tó mean only a “contract,” in the strict and technical sense of the term. Three classes of obligations are known in law as “contracts,” and are especially so distinguished for the purposes of remedial, justice, namely, “express contracts,” “implied contracts,” and “constructive contracts.” “Express contracts” are those the terms of which are averred and uttered by the parties. Broom, Com. Law, 250. “Implied contracts” are such as reason and justice dictate, and which the law, therefore,- presumes that every man
Finally, it is intimated by the learned supreme court that an undertaking on attachment is not a contract because it is imposed upon the obligor by statute, and consent is an essential element of contractual liability. We have already adverted to the fact that the sureties are not compelled to give the undertaking; and neither, for that matter, is the plaintiff in the attachment suit, for he has an election to give the undertaking or forego the attachment. Consent, undoubtedly, is a necessary element of a contractual obligation; but the consent need not be actual, but may be implied by law against even the express volition of the party. Hence a judgment in invitum is a contract, and, though obtained for a tort, may be interposed as a counter-claim in an action on contract. Taylor v. Root, *43 N. Y. 335; Badlam v. Springsteen, 41 Hun, 160; Clark v. Story, 29 Barb. 295; Wells v. Henshaw, 3 Bosw. 625. tio, “if one man has obtained money from another, through the medium of
