enqueue() adds an element to the end of the queue.
dequeue() removes an element from the front of the queue.
init() is used for initializing the queue .
isEmpty tests for whether or not the queue is empty.
The front is used to get the value of the first data item but does not remove it.
The rear is used to get the last item from a queue.