This axiomatic principle is easy to state but can be difficult to apply in the context of fictional characters because a properly copyrighted work does not mean every element of the work is protected.
FORBES: Protecting Fictional Characters: Could You Legally Write A New Harry Potter Novel?