Code of Ethics are basically a set of rules followed by individuals or organization to direct their decision taking. It is a set of principles by which they distinguish between right and wrong.
For example: There is “Personal Code of Ethics” in which the individual respects other person’s property, refrain them from violence. Then we also have ‘’Religious Code of Ethics”.
A good code of ethics will make sure that the person behaves well and doesn’t do any illegal activities.