Week 5 blog
During last week’s lecture, I learned about Stack as well as Queue. They are like a container. Stack is a model that first in last out (last in first out); while Queue is first in first out.
Also, with the knowledge about subclass, I learned that some functions like __init__, add,remove,is_empty can be designed in subclass while others should be implemented in sup-class. However it depends on the class that we want to design.
Testing is a good way to find if the class or function works. We can use examples to do the testing or unittest it.
Although today is Chinese traditional new year, the mid-term test is coming in the following week, so that I need to work hard to prepare for it. Hope I could get high marks.













