An object or agreement is considered illegal if: 1) It is forbidden by law or would defeat the provisions of any law. 2) It is fraudulent or involves injury to another's person or property. 3) A court regards it as immoral or opposed to public policy.