In my opinion, object oriented programming is basically programming based on an object. In another word, we program by defining various objects, make them interact, and produce our desired outcome from their interaction. One classic example of object is ‘class’ that we learned how to build in the past couple weeks. A class has certain attributes, a type, and can interact with other classes. For instance, if we design a class for inventory, we can have a type ‘integer’ to describe the number of inventory, the method ‘reduce inventory’ to take an inventory away, and interact our class inventory with another class, perhaps supermarket, to collectively produce a computer program for inventory check of a super market.
Simply speaking, I believe object-oriented language is basically programming to create an object through defining classes. The classes would compile into a large program, and through the interaction of the classes, a complete program can be made.
Thursday, 19 February 2015
Thursday, 12 February 2015
WEEK 5
Week 5 is a busy week for me, I completed 3 midterms and an assignment. Now is 5 am, I finally have time to summarize my busy week. This week we continue learning recursion, in my opinion, recursion is the process of repeating items in a self-similar way, its function is very similar with loop. It is a good way to simplify code through using function in function itself. I think if you wanna use it correctly, you need to have a strong ability of logical thinking. Now I can trace the process, but write a function with recursion is still a difficult things for me.
Finally, I wanna complain about the term test 1, 50 mins is not enough for this test, I left the first question blank, it is a sad story....
Finally, I wanna complain about the term test 1, 50 mins is not enough for this test, I left the first question blank, it is a sad story....
Subscribe to:
Posts (Atom)