Sunday, 15 February 2015

Week 6

Week 6

'Class' is the most important blueprint in object-oriented programming. Class logically groups related functions together to create an object. The __init__,  __str__, __repr__,..., etc. method which defines the class and initialize the class. The subclass which I found is very convenient as it inherit the characteristics from it's base class and add additional functions to approach make the 'object' behave in a certain way. The subclass shows the characteristics of 'lazy geeks' or smart geeks perfectly. 

This week's lab was confusing. I have looked at the lab briefly before tutorials, and I thought we just need to complete three functions. However, the three functions was getting harder and harder. I realize that I need more practice and become more familiar with 'trees' and 'recursion'. Thinking back about the slides and definition of trees, it actually make more sense to me every time. I must remember to keep up with the materials we learn each week as the material gets more harder. 

No comments:

Post a Comment