Saturday, October 22, 2011

Topic 2: Programming Languages. Part 5

Object-oriented programming
    Object-oriented programming (OOP) - is nowadays a natural modern approach to building complex applications and systems.
    At the heart of object-oriented programming is the idea of merging into a single data structure and the actions taken against them. In OOP terminology, these actions are called methods. In this approach, the organization of data and software implementation of actions on them are much more connected than with traditional structured programming.
    Object-oriented programming is based on three basic concepts: encapsulation, inheritance, polymorphism.
    Encapsulation - a combination of data from procedures and functions that manipulate that data. Encapsulation can be imagined as a mechanism that combines data and procedures to handle them in a single structure.
    Imitation - an opportunity to use already defined objects to build a hierarchy of objects derived from them. Inheritance - a mechanism in the application of a single object may receive by heredity all other properties and methods, giving them their characteristic properties.
    Polymorphism - an opportunity to define a common name for the action (procedure or function) that can be applied to all objects of the hierarchy of inheritance. Polymorphism is a mechanism that allows the same name used for solving similar problems, which still differ in some detail.
    An example application of object-oriented programming is available in Windows.
    Object-oriented programming - programming a new ideology based on the use of set of objects and events to which he can react. Object-oriented approach can significantly simplify the writing of complex programs, give them flexibility. One of its main advantages can be called an opportunity to expand their areas of application, not pererabatyvaya programs themselves, but adding to them new levels of hierarchy.
 

No comments:

Post a Comment