0% found this document useful (0 votes)
18 views4 pages

Advantage of Producers Oriented Programming Pop

The document compares Procedure Oriented Programming (POP) and Object Oriented Programming (OOP), highlighting their advantages and features. POP is simpler and faster for small tasks but has limitations in data management and reusability, while OOP emphasizes data encapsulation, reusability, and easier maintenance. Key concepts in OOP include encapsulation, abstraction, inheritance, and polymorphism, which enhance code organization and flexibility.

Uploaded by

bistsajan35393
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views4 pages

Advantage of Producers Oriented Programming Pop

The document compares Procedure Oriented Programming (POP) and Object Oriented Programming (OOP), highlighting their advantages and features. POP is simpler and faster for small tasks but has limitations in data management and reusability, while OOP emphasizes data encapsulation, reusability, and easier maintenance. Key concepts in OOP include encapsulation, abstraction, inheritance, and polymorphism, which enhance code organization and flexibility.

Uploaded by

bistsajan35393
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

 Advantage of producers oriented programming pop ?

 1. Easy to Understand: It’s straightforward because you just write a


series of steps (procedures or functions) to solve a problem.
 2. Quick to Write: For small programs, it’s faster to develop since
you don’t need complex structures like objects.
 3. Good for Simple Tasks: POP works well for small tasks that don’t
need a lot of complexity.
 4. Clear Flow: The way the program runs is easy to follow, making it
good for simple applications.
 5. Faster for Small Programs: It can run faster in small programs
because there’s less overhead compared to more complex
programming styles.
Advantage of objects oriented programming OOP ?
1. Easier to Manage: It breaks a program into smaller pieces (objects),
making it easier to understand and work on.
2. Reuse of Code: You can use the same code in different places without
writing it again, which saves time and effort.
3. Protects Data: It hides the details of how things work inside objects,
preventing mistakes and keeping data safe.
4. Easier to Update: If something needs to be changed, it’s easier to
update one part without messing up the whole program.
5. Simplifies Complex Ideas: You can focus on the big picture and not get
caught up in all the small details.
What is procedure oriented programming (pop) ?
It is a conversation or old method of programming In which program is
written in small parts called function and function are combined together
to make a large program. Variable are created for data handing they are
treated as a local and global variable.

The feature of pop are;

1. A large program is broken down into small programs called module or


functions.
2. It focuses on function rather than data.
3. Variable are created as local and global.
4. It follows top to down approach.
5. The possibility of data alteration is very high, which is a disadvantage of
this approach.1. A large program is broken down into small programs
called modules or functions:
Imagine a big task, like baking a cake. Instead of doing everything in one
go, you break it down into smaller steps (mixing, baking, frosting). In
programming, these smaller steps are called functions.
2. It focuses on function rather than data:
In procedural programming, we focus more on what the functions do (like
mixing, baking) rather than what data is stored.
3. Variables are created as local and global:
Variables can be used inside a specific function (local) or throughout the
whole program (global).
1=What is object oriented programming (OOP)?
It is a modern approach of programming. In this method all the real world
entities (real world method and object) are collected together. In this
method the changes on class are easily possible it is also close "data
disclosure". Priority is given to data rather than the functions.

Characteristic / feature of OOP


1. Importance is given to data
2. Program is divided into multiple objects.
3. Functions and data are tied together in a single unit (called
encapsulation).
4. Data can be hidden to prevent accidental alteration.
5. It follows bottom to up approach.
1. Importance is given to data:
In OOP, data (attributes) and behavior (methods/functions) are treated as
central elements, unlike procedural programming where the focus is
primarily on actions or functions. OOP ensures that data is modeled as
objects with behaviors.
2. Program is divided into multiple objects:
OOP decomposes the program into smaller, self-contained units called
objects. Each object represents an instance of a class and can have its
own data and methods. This division makes the code modular, easier to
understand, and maintain.
Explain the term of polymorphism, Encapsulation, Inheritance,
Abstraction

1=Encapsulation
The wrapping up of data and function into a single unit is known as
Encapsulation. It is also called Information hiding concept. The data of a
class is not accessible to the outside world and only those functions which
are wrapped in the class can access it. It is used to reduce software
development complexity.
2=Abstraction
Abstraction refers to the act of representing essential features without
including the background details or explanation. It hides the
implementation while just presenting the features to the outside world. It
reduces code complexity.

When

3=Inheritance
we construct a new class from an existing class in such a way that the
new class inherits all the features and property of the existing class it is
called Inheritance. It provides code re-usability.
4=Polymorphism
This is constructed form a single form but many different
implementations. The main purpose of polymorphism is to simplify
maintaining and making them more extendable and flexible.
Different between pop and opp ?

Pop

1=Important is given to procedure.


2=Programs are divided into multiple modules called function.
3=It follows top down approach.
4=Data are not hidden
5=Maintenance is difficult
6=Code reusability is difficult.
Oop
1=Important is given to data.
2=Programs are divided into multiple objects.
3=It follows bottom up approach
4=Data can be hidden
5=Maintenance is easy
6=Code reusability is easy .

You might also like