Saturday, May 10, 2008

The Object Oriented approach

The fundamental idea behind object-oriented languages is to combine into a single unit both data and the functions that operate on that data. Such unit is called an Object.

An object functions, called member function in OOP, typically provide the only way to access its data. If you want to read data item in a object, you call a member function in the object. It will read the item and return the value to you. You can't access the data directly. The data is hidden, so it is safe from accidental alteration. Data and its functions are said to be encapsulated into a single entity.

If you want to modify the data in an Object, you know exactly what functions interact with it : the member functions in the object. No other functions can access the data. fig1 shows conceptual view of OOP approach.

Keep in mind that Object Oriented Programming is not primarily concerned with the details of program operation. It deals with the overall organization of the program.

Characteristics of Object Oriented Language
It will be divided into objects. Thinking in terms of objects, rather than functions


  1. Physical objects

  2. Elements of the Computer user environment

  3. Programming constructs

  4. Collection of data


No comments:

Post a Comment