Wednesday, March 3, 2010

Object-oriented Programming

OOP treats data as a critical element and protects the data from freely flowing around the system. It clearly defines the functions that can access the data thus protecting accidental modification of the data by other functions. OOP breaks down a problem into a number of entities called objects and builds data and functions around these objects. The following diagram shows the organization of data and functions in an object-oriented program.


Features of OOP 
  • Focus is on the data rather than procedures.
  • Programs are divided into entities called objects.
  • Functions that can access the data of an object are tied together in the data structure (object).
  • Objects may communicate with each other through functions.
  • Follows bottom-up approach in program design.

 

No comments:

Post a Comment