 Sanctity of contract often is given preference.The onus of proving illegality seems to rest on the party who relies on it, but a court will take notice of illegality in certain circumstances of its own accord.It is either the conclusion of a contract or its performance, or else the reason for its conclusion, that is regarded as objectionable and that renders the contract void.