There is no universally accepted definition of a contract, but in general a contract is a promissory agreement that is legally enforceable. However, some contracts are unenforceable or voidable under certain circumstances, and others can be formed without an actual agreement (e.g., quasi-contracts).