 This approach is often used in message parsing routines, where several types of messages are received, but all start with the same set of fields, usually including a field for message type.The generic routines are used to add new messages to a queue when they are received, and remove them from the queue in order to process the message.The message type field is then used to call the correct routine to process the specific type of message.