Thursday, 19 February 2015

Week 6

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.

No comments:

Post a Comment