0% found this document useful (0 votes)
14 views18 pages

Dev Preesentation

The document discusses programming paradigms, specifically comparing Procedural Oriented Programming (POP) and Object Oriented Programming (OOP). It highlights the features, advantages, and disadvantages of both paradigms, emphasizing that POP is suitable for small, simple programs, while OOP is better for larger, complex projects. The choice between POP and OOP depends on the nature of the programming task at hand.

Uploaded by

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

Dev Preesentation

The document discusses programming paradigms, specifically comparing Procedural Oriented Programming (POP) and Object Oriented Programming (OOP). It highlights the features, advantages, and disadvantages of both paradigms, emphasizing that POP is suitable for small, simple programs, while OOP is better for larger, complex projects. The choice between POP and OOP depends on the nature of the programming task at hand.

Uploaded by

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

WHICH

LANGUAGE
IS
SUTABLE
?
FOR
MY
PRAGRAM
WELCOME
TO ALL PROGRAMMERS…
AGENDA
Programming Paradigm
Procedure oriented programming
(POP)
Object oriented programming (OOP)
POP vs OOP
RESULT
PROGRAMMING PARADIGM

Programming paradigm is Classification of


programming language based on its characteristic.
Types of program :
• Procedural programming
• Object oriented programming
• Declarative programming
• Logical programming
Procedure

Oriented

Programming
PROCEDURAL ORIENTED PROGRAMMING
• A Programming paradigm that is based on
procedure (function) called procedure oriented
language.
• They consist of sequential steps that perform
specified task.
• Function are predefine or define using a unique
name.
FEATURES
• Modularity
• Predefine Functions
• Scoping
• Library
ADVANTAGES: DISADVANTAGES
• Portable • Hard to manage large
• General-purpose problems
programming • Doesn’t match real-world
problems
• Functions
• Less data security
• Easy Flow tracking
• Hard to debug
Object

Oriented

Programming
OBJECT ORIENTED LANGUAGE

• Object oriented programming is a way of


computer programming that is based on
the idea of “object” to represent data and
methods.
• The approach is used to create a neat and
reusable code instead of a redundant one.
OBJECT AND CLASS

What Is object ?
• Object id a real world entity like Cars, Animal, pen.

What is a class?
• Class is a collection of objects
FEATURES
• Inheritance
• Encapsulation
• Polymorphism
• Data Abstraction
Advantages Disadvantages
• Reusable code • Slower performance
• Data and code are • Complexity
bound together • Harder to learn
• Data hiding • Take time to Design
• Flexible
PO
P

vs

OO
P
aspect Procedural programming Object oriented programming
(pop) (coop)
Primary focus Functions Objects and classes

Program structure Divided into functions Organized into objects, which are
instances of classes
Data handling Data is passed between function Data and function are encapsulated
within objects
Function based, limited Class based promotes, reusability
modularity reusability and modularity through inheritance
and polymorphism.
security Data is typically global, making Encapsulation provides better data
it less secure protection
Simplicity Easier for beginners to learn and More complex due to classes and
implement objects; may requires a learning
curve.
performance Generally faster for small Can be slower due to object creation
applications
Memory effciency Requires less memory because it May use more memory due to object
doesn’t use object’s instances.
Less complexity Avoids complexities and Involves complex structures like
RESULT
• POP (Procedural-Oriented Programming) is good for
small, simple programs where you focus on steps to
solve a problem.

• OOP (Object-Oriented Programming) is better for larger,


complex programs where you need to organize data and
functions together, making it easier to manage and
reuse code.

• Choose POP for quick and simple tasks.


• Choose OOP for bigger projects that need more

You might also like