Today, we learned about stacks. This seems familiar to me as I remember doing it in programming club. Stacks know their size and top. There are several methods such as push, pop, next and top. It reminds me of stacks of plates that need to be cleaned. Stacks are similar to nodes. They are a bit confusing but with more practice, I think I will get better at it. We were asked to write our own Stack class with the appropriate constructor, accesors and mutators.
No comments:
Post a Comment