Sunday, April 5, 2015

WEEK 11: Review Past Posts

In this week, we have finished most tasks of CSC148 course. We have reviewed some knowledge we learned from CSC108, for instance, bubble sort, insertion sort and selection sort. Furthermore, we also expanded our understanding of different types of sort and developed abilities to designed new sort.

However, after revisiting my past slogs, I found what I thought about are not completed enough. Since several weeks past, for question I raised in week 4, should I keep property of father class in son class as its property or replace old property with a new son property, I should inherit the property of main class instead of replacing it. Because the son class is worked exactly for its father class, and it has same property of father class.

After learning what is class and how to design a class, we have stepped into another vital part of our lecture. Recursion can be used into designing different functions and solving time for computer to run them. In order to use recursion expertly, the first thing to do is to know what is the basic case of a function, then consider all possible conditions during the function is running. Moreover, it's important to know attributes of class so that recursion is writting in a correct way.

No comments:

Post a Comment