//The association relationship is the oject 1 can declare an object of the object 2 to use the object 2's function for the sake of removing the duplication code //for example, this class command need the IHaveInventory container to provide and support for its function //Find the item inside the cointainer just found in the above private string LookAtIn(string thingId, IHaveInventory container) { //This is to check even when the container is valid, is there that item inside if (container.LocateSth(thingId) != null) { return(container.LocateSth(thingId).FullDescription); } else { return("There is no" + thingId); } }