How are ethics and the law the same?

Ethics and law are the same in that you should abide by both. They are both restrictions on your behavior. Although ethics are a more personal choice.