Procedure-Oriented Programming:
High level languages such as COBOL, FORTRAN and C, is commonly known as procedure oriented programming(POP). IN the procedure oriented programming , the problem is viewed as a sequence of things. Procedure-oriented programming basically consists of writing a list of instructions for the computer to follow. we normally use a flow chart to organize these action and represent the flow of control from one action to another. While we concentrate on the development of functions, very little attention is given to the data that are being used by various functions.
Relationship between data and function in POP
Characteristics of Procedure Oriented Programming are:
- Procedure oriented programming is a function oriented approach.
- Large functions are divided into small programs known as function.
- POP follows top-down approach.
- Data move freely around the system from one function to another function.
- New data and function cannot be added easily.
- A good programming approach for scientific application development.
Object-Oriented Programming:
Object oriented approach is to remove some of the flows encountered in the procedure oriented programming. Object oriented programming(OOP), treats data as a critical element in the program and does not allow it to flow freely around the system. It ties data more closely to the functions that operate on it to flow freely around the system. It allows decomposition of a problem into a number of entities called Objects. The data of an object can be accessed only by the functions associated with the object.
Relationship between data and functions in OOP
Characteristics of Object Oriented Programming:
- Object oriented is a data oriented approach.
- Programs are divided into what are known as Objects.
- OOP follows bottom- up approach.
- Data is hidden and cannot be accessed by the external functions.
- New data can be added easily.
- A good programming approach for real time software design.
No comments:
Post a Comment