The difference between OOP and procedural and their advantages and disadvantages

Programming is a broad field and continues to evolve over time. It’s no secret that in order to be a successful programmer, you need to have a thorough understanding of the basics. One of them is understanding the programming paradigm.

There are several paradigms we can learn, such as OOP, procedural or functional. In this post, the administrator will discuss the difference between OOP and procedural.

What is a paradigm?

The programming paradigm is a way or the point of view of a programmer to solve a problem by programming. The programming paradigm is important for a programmer to be able to identify a problem before preparing a solution with a computer program. Currently, there are several programming paradigms that are widely implemented by programmers, such as procedural or OOP.

Read also: Programming paradigm: definition and types

What is the procedural paradigm?

Procedural / procedural paradigm is a paradigm based on the concept of machine From Newman (stored program concept) in which the storage (memory) is divided into instruction memory and data memory, and each memory can be given a name and a value to be executed sequentially one by one, starting from the top line down, where all data and code combined in one part into one program.

The advantage of this paradigm is that it has simplicity, efficiency and efficient execution of command line programs, because it is very close to machine language. In addition, program writing has a correct and easy-to-understand logical structure because it has only 3 basic structures, namely sequential structure, selection, and iteration.

While the disadvantage is the many limitations that sometimes make it difficult for a programmer, such as the way the program is written, which is far from “human language”. In addition, the program is quite difficult to maintain because it is difficult to change the code without affecting the operation of the system as a whole. Examples of programming languages ​​that use this paradigm are high-level programming languages, such as Cobol, Basic, Pascal, Fortran, and C.

What is the OOP Paradigm?

Object Oriented Programming or Commonly Known as Object Oriented Programming (OOP) is a programming paradigm that solves program problems by providing objects (consisting of multiple attributes and methods) that are interconnected and arranged in a single group, or called a class. Later, these objects will interact with each other to solve complex program problems.

The advantage of the OOP paradigm is that in defining a class, it is written only once. In addition, it can add features to the class without having to edit the original class, it can use an object without having to know the technical aspects of it, the data can be managed privately so that it does not affect other functions and can build libraries that can make it easier for programmers to build an information system.

Although the disadvantage is that it requires more memory space compared to structured programming and requires a strong programming base to use it. Examples of programming languages ​​that use this paradigm are Delphi, Java, C ++, PHP, Python.

Read also: Itu OOP (Object Oriented Programming) water?

The difference between OOP and procedural

Once you know the explanation of the Possession and OOP paradigm. Now let’s see the difference between OOP and procedural.

Not OOP Procedural
1 In the OOP concept, programs are divided into small pieces called objects that are class instances. In the concept of procedure, the main program is divided into smaller parts based on function and treated as separate programs for smaller individual programs.
2 OOP has access modifiers, such as public, protected, and private. Procedural do not have access modifiers such as OOP
3 Because OOP can do abstraction in hiding data. Therefore, the OOP is more secure than procedural. Procedurally, less secure than OOP
4 Because modularity in OOP programs is less complex and therefore new data objects can be easily created from existing objects, making OOP easy to modify There is no simple process to add data to the procedure without reviewing the entire program.
5 Suitable for complex projects or applications Suitable for simple projects or applications
6 A little difficult for beginner programmers to understand Easy to understand for beginner programmers


So this is the difference between OOP and procedural. In essence, the purpose of the procedure is to divide the program into a collection of variables, data structures, while the main purpose of object-oriented programming is to divide the program into objects.

So many articles The difference between OOP and procedural. Looking forward to more interesting articles and don’t forget to share this article with your friends. Thank you…

Leave a Comment

/* */