An illegal contract can affect any type of agreement or transaction. In addition, for an agreement that can be considered a valid contract, it should include the free consent of the parties, as well as the assurance that the “object” of such a contract is legal. Without respect for these particular conditions, a contract cannot be considered valid in the eyes of the law. Under india`s Treaty Act, an important determinant of an illegal agreement is the “object” of the counterparty. This may be an illustration for a more precise understanding – contracts known as zero-hours contracts are generally agreements for which an individual or other company agrees to be paid for the hours actually worked, and: putting the parties back in the position they were in prior to the illegal agreement respected the legal considerations underlying the doctrine of illegality in this case. An inconclusive agreement nullifies the transfer of ownership of the property (for example. B in case of termination). And no illegal old activity will make a deal illegal. In this section, the words “void,” “object” and “consideration” can be read. There may not be a void object as such, but it can be considered a null contract with an illegal object that is cancelled.  Similarly, there can be no “non-counterpart” as such, but it can be considered a null contract with an illegal consideration that can be cancelled.  This section deals with the illegality of the two – the purpose of the contract and the consideration.
 For example: If money has been lent for the marriage of the minor, the consideration for the contract is credit and the object is marriage, the Madras High Court found that the purpose refutes the provisions of the Child Marriage Restraint Act. The word “object” in section 23 is not used in the same sense as “reflection,” but has been used as a distinctive agent of respect and means “purpose” or “design.”  The section invalidates an agreement whose objections or considerations are unlawful. These are three points, namely (1) the counterparty of the agreement, (2) the purpose of the agreement and (3) the agreement. In the event of a cancellation of a contract, any part of that contract, including the employment clauses it contains, is deemed invalid.