 In object-oriented programming, resources are encapsulated within objects that use them, such as a codice_22 object having a field whose value is a file descriptor (or more general file handle).This allows the object to use and manage the resource without users of the object needing to do so.However, there is a wide variety of ways that objects and resources can be related.