What is meant by a ‘complex’ character in fiction?

Primarily it means that these characters have moral contradictions. And that means they…have a highly compartmentalized moral code.

John Truby