What is ILLEGAL CONSIDERATION This term applies to an agreement or a contract that of carried out will be contrary to public interest .