Dev Preesentation
Dev Preesentation
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
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
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.