Sunday, April 11, 2010

Object Oriented Programming (OOPS)

OOPS is the Computer programming concept that breaks the problem into smaller objects similar to real life. Traditionally, computer programming used to emphasize on solving the problems with functions and procedures. For every task there would exist a function. This was good but was confusing with complex products and softwares. Moreover, the data used to suffer because of this approach.



All the data that has to be used by multiple functions would be globally defined and would be shared across all the functions. This could lead to data corruption or change in data inadvertently and thus bugs/defect would creep in.

to overcome these problems, OOP was introduced. OOP bases itself on data. OOP has objects at the core of programming.

With OOP, every object can handle data, get messages, and transfer messages to other objects. The objects will all act as independent units in their own right, and they will be responsible for carrying out a certain process. Since objects are independent from each other and have their own data, data security is better and hence OOP is considered flexible than the older programming techniques.

Next post will discuss the building blocks of OOP

No comments: