 Further, a single object may "have" several other objects, owning some and viewing others.Both cases are commonly found, and conventions differ.Having objects that use resources indirectly be responsible for the resource (composition) provides encapsulation (one only needs the object that clients use, without separate objects for the resources), but results in considerable complexity, particularly when a resource is shared by multiple objects or objects have complex relationships.