In computer science, a composition is a manner to form data structures with elements where the structure contains data objects or other structures, namely the structure is in the relationship of "has a", rather than "is a", or one-to-one correspondence.