Open In App

Difference between OOP and POP

Object-Oriented Programming (OOP)

Some Characteristics of Object Oriented Programming:-

Features of OOP (Object Oriented Programming):-

  1. Class
  2. Object
  3. Encapsulation
  4. Data Abstraction
  5. Inheritance
  6. Polymorphism
  7. Data binding
  8. Message Passing
     

Application of Object Oriented Programming:-

Advantages of OOP:-

1. Improved software-development productivity:  

Object-oriented programming is modular, as it provides separation of duties in object-based program development. It is also extensible, as objects can be extended to include new attributes and behaviors. Objects can also be reused within an across applications. Because of these three factors – modularity, extensibility, and reusability – object-oriented programming provides improved software-development productivity over traditional procedure-based programming techniques. 

2. Improved software maintainability:

Since the design is modular, part of the system can be updated in case of issues without a need to make large-scale changes.



3. Faster development:

Reuse enables faster development. Object-oriented programming languages come with rich libraries of objects, and code developed during projects is also reusable in future projects. 

4. Lower cost of development:

The reuse of software also lowers the cost of development. Typically, more effort is put into the object-oriented analysis and design, which lowers the overall cost of development.



 
5. Higher-quality software:

Faster development of software and lower cost of development allows more time and resources to be used in the verification of the software. Although quality is dependent upon the experience of the teams, object oriented programming tends to result in higher-quality software.

Disadvantages of OOP:-

1. Larger program Size: 

Object oriented programs are much larger than other programs. In the early days of computing, space on hard drives, floppy drives and in memory was at a premium. Today we do not have these restrictions.

2. Effort: 

Object oriented programs require a lot of work to create. Specifically, a great deal of planning goes into an object oriented program well before a single piece of code is ever written. Initially, this early effort was felt by many to be a waste of time. In addition, because the programs were larger, coders spent more time actually writing the program.

3. Speed: 

Object oriented programs are slower than other programs, partially because of their size. Other aspects of Object Oriented Programs also demand more system resources, thus slowing the program down.
 

Procedural Oriented Programming (POP)

Characteristics of procedure-oriented programming:-

Drawback:-

Difference between OOP and POP:

OOP POP
Object oriented. Structure oriented.
Program is divided into objects. Program is divided into functions.
Bottom-up approach. Top-down approach.
Inheritance property is used. Inheritance is not allowed.
It uses access specifier. It doesn’t use access specifier.
Encapsulation is used to hide the data. No data hiding.
Concept of virtual function. No virtual function.
Object functions are linked through message passing. Parts of program are linked through parameter passing.
Adding new data and functions is easy Expanding new data and functions is not easy.
The existing code can be reused. No code reusability.
use for solving big problems. Not suitable for solving big problems.
C++, Java. C, Pascal.
Article Tags :