What is Procedural Programming?
Procedural programming is a programming paradigm where you write instructions step by step from top to bottom.
What is Object-Oriented Programming?
Before understanding what is OOP, you need to know what kind of problems you face with POP (Procedural Oriented Programming).
Disadvantages of procedural programming language
When you work on a big project, you face the following types of problems –
- It’s hard to write program code when multiple developers work on the same project.
- The code of a large project written in a Procedural way is difficult to maintain, and also difficult to debug, because the code is not organized.
- The Procedural code is often not reusable.
- It is less secure than OOP, because the data is shared across the program.
How to solve the above disadvantages?
Here comes OOP (Object-Oriented Programming), which is an approach or guideline for the programmer to write programs in an efficient and more managed way. It solves many problems including the above.
OOP also has disadvantages
- When you create small projects using OOP, it is difficult and boring to maintain the project due to over-organized.
- The program written in the OOP approach becomes large in size, and this slows down the execution of the program and uses a high amount of memory.