The document contains a C++ program that implements the heap sort algorithm to sort an array of integers. It defines a class called 'array' which includes methods for adding elements, creating a heap, sorting the heap, and displaying the contents of the array. The main function demonstrates the usage of these methods by sorting a predefined set of numbers.