A contract can be defined as an agreement between  two or more parties with the purpose to create a commitment.Contract law provides a legal framework within which persons can transact business and exchange resources, secure in the knowledge that the law will uphold their agreements and, if necessary, enforce them.