This is well explained in “Who Owns What?”, a book by intellectual property lawyer Xerxes Ranina. He explains copyright, contracts, and other legal issues in simple language.
Read this post on storizen.com