When creating classes, we aim to have each class perform one function. For more complex problems, one solution is to use composition. I use the ol' computer example. A computer performs many operations. It directs the flow of data, saves and retrieves data, provides a UI for input/output. Instead of writing one giant class for handling all of...
A couple of entries ago I began to talk about Stacks. A slightly more difficult topic involves Queues. Where in a stack, data is incremented from the back and removed from the back, a queue adds data to the back and removes it from the front. Below is an example of a queue, documented throughout. If there are any questions feel free to PM or...