DIFFERENCE BETWEEN PROCEDURAL AND OBJECT ORIENTED PROGRAMMING



PROCEDURAL PROGRAMMING:

Procedural programming can be defined as a programming model which is derived from structured programming, based upon the concept of calling procedure. Procedures, also known as routines, Subroutines, or functions, simply consist of a series of computational steps to be carried out. During a program's execution, any given procedure might be called at any point, including by other procedures or itself 

1.In procedural programming, the program is divided into small parts called functions.

2.Procedural programming follows a top-down approach.
3.There is no access specifier in procedural programming.

4.Adding new data and function are not easy.

5.Procedural programming does not have any proper way of hiding data so it is less secure.

6.In procedural programming, overloading is not possible.

7.In procedural programming, the function is more important than data.

8.Procedural programming is based on an unreal world.

Examples: C, FORTRAN, Pascal, Basic, etc.

LANGUAGES USED IN PROCEDURAL PROGRAMMING:

Fortran, ALGOL, Pascal, COBOL, BASIC, and C

OBJECT ORIENTED PROGRAMMING:

Object-oriented programming can be defined as a programming model that is based upon the concept of Objects. Objects contain data in the form of attribute and code in the form of methods. In Object-oriented programming, computer programs are designed using the concept of objects that interact with the real world. Object-oriented programming languages are various but the most popular ones are class-based, meaning that objects are instances of classes, which also determine their types 

1.In procedural programming, the program is divided into small parts called functions.

2.Procedural programming follows a top-down approach.
3.There is no access specifier in procedural programming.

4.Adding new data and function are not easy.

5.Procedural programming does not have any proper way of hiding data so it is less secure.

6.In procedural programming, overloading is not possible.

7.In procedural programming, the function is more important than data.

8.Procedural programming is based on an unreal world.

Examples: C, FORTRAN, Pascal, Basic, etc.

Comments

Popular posts from this blog

DDR 3 VS DDR 4

JAVA BEANS

GOOGLE DORKS