Tuesday, 28 November 2017

Difference between Procedure/structure oriented programming and object oriented programming

Procedure/ structure oriented Programming

 Conventional programming, using high level languages such as COBOL, FORTRAN and C, is

commonly known as procedure-oriented programming (POP).

 In the procedure-oriented approach, the problem is viewed as a sequence of things to be done

such as reading, calculating and printing. A number of functions are written to accomplish these

tasks.

 The primary focus is on functions.



Object Oriented Programming

 Emphasis is on data rather than procedure.

 Programs are divided into what are known as objects.

 Data is hidden and cannot be accessed by external functions.

 Objects may communicate with each other through functions.

 New data and functions can be easily added whenever necessary.




No comments:

Post a Comment