Section § 1595

Explanation

This law section explains that the 'object' of a contract is the action or inaction that one party agrees to perform in exchange for something of value from the other party.

The object of a contract is the thing which it is agreed, on the part of the party receiving the consideration, to do or not to do.

Section § 1596

Explanation

This law means that for a contract to be valid in California, it must have a legal purpose, and the things in the contract must be something you can realistically do and clearly define by the time you need to fulfill it.

The object of a contract must be lawful when the contract is made, and possible and ascertainable by the time the contract is to be performed.

Section § 1597

Explanation

This law says that you can assume anything could happen unless it goes against the basic laws of nature. It's a way to express an open-minded approach to possibilities.

Everything is deemed possible except that which is impossible in the nature of things.

Section § 1598

Explanation
If a contract is created with only one purpose and that purpose is illegal, impossible to carry out, or unclear such that it can't be understood, then the entire contract is invalid.
Where a contract has but a single object, and such object is unlawful, whether in whole or in part, or wholly impossible of performance, or so vaguely expressed as to be wholly unascertainable, the entire contract is void.

Section § 1599

Explanation

If a contract has multiple goals, and at least one of them is legal while another is illegal, the illegal part of the contract is not valid, but the legal part remains valid.

Where a contract has several distinct objects, of which one at least is lawful, and one at least is unlawful, in whole or in part, the contract is void as to the latter and valid as to the rest.