Explain the purpose and function of a data structure as it relates to object-oriented programming.
Examples: array, linked list, stack, queue, binary tree, binary search tree, heap, hashing, graph