2015年2月15日星期日

Week 6: Summary of Object-Oriented Programming concepts

    In the Object-Oriented Programming, there are many concepts which are class, object, message passing, inheritance, encapsulation, polymorphism and abstraction.
    Firstly, class defines the abstract characteristics of a thing, which means that class defines general property of that thing and what it can do. And the methods in the class can be called the member of that class. Secondly, object means the specific things like some examples in the class. Thirdly, message passing indicates that an object achieves some functions by receiving message, processing message,passing out message or other methods. Fourthly, a class usually has some subclass which is more specific to embody himself and all subclass have the property that the class defines, which is the inheritance of the class. Fifthly, Object-Oriented Programming has encapsulation which means it hides a method of concrete steps, replaced by transmitting message through message passing. Encapsulation is only a particular class of objects can be accessed by members of the particular class restrictions and they often use interface inbound and outbound messages.Sixth, polymorphism indicates that different classes related by inheritance produced its target for the same massage will make different responses. Finally, abstraction is the way to simplify the complicated problem in the reality. It can find a suitable class for specific problems and the suitable subclass to explain problems.
    Overall, Object-Oriented Programming can be seen as the program that contains a variety of independent and co-ordination objects.
    


























没有评论:

发表评论