SlideShare a Scribd company logo
Structured Vs Object Oriented
Programming
LECTURE # 01
FC-III (ADP-II-CS)
Prepare By: Umber Ismail
Structured Programming
“Emphasizes breaking down programs into smaller, manageable parts
(functions or procedures). “
Key Features:
1.Modularity: Programs are divided into functions, enhancing clarity and ease of maintenance.
2.Control Structures: Uses sequences, loops, and conditionals for flow control.
3.Procedural Abstraction: Focuses on procedures/functions to achieve tasks.
Example:
 Real-World Analogy: Building a house using modular components (walls, doors, windows).
 Programming Example: Calculating payroll using separate functions for input, computation, and
Object Oriented Programming
Concept Of Object Oriented Programming
OOP is an approach or a Programming pattern where the programs are structured around objects
rather than functions and logic. It makes the data partitioned into two memory areas, i.e., data and
functions, and helps make the code flexible and modular.
Object-oriented programming mainly focuses on objects that are required to be manipulated. In
OOPs, it can represent data as objects that have attributes and functions.
Why use OOP?
 Object Oriented Programming (OOP) is one of the most widely
used programming paradigm
 Why is it extensively used?
 Well suited for building trivial and complex applications
 Allows re-use of code thereby increasing productivity
 New features can be easily built into the existing code
 Reduced production cost and maintenance cost
 Common programming languages used for OOP include C++,
Java, and C#
Basic Object-Oriented
Programming
 Object-An O Object can be defined as an entity that has a state and behavior, or in
other words, anything that exists physically in the world is called an object. It can
represent a dog, a person, a table, etc. An object means the combination of data
and programs, which further represent an entity.
 Classes-Class can be defined as a blueprint of the object. It is basically a collection
of objects which act as building blocks.

Abstraction- Abstraction helps in the data hiding process. It helps in displaying the
essential features without showing the details or the functionality to the user. It
avoids unnecessary information or irrelevant details and shows only that specific
part which the user wants to see.
 Q wza
Basic Object-Oriented Programming
 Encapsulation- The wrapping up of data and functions together in a single unit is
known as encapsulation. It can be achieved by making the data members' scope
private and the member function’s scope public to access these data members.
Encapsulation makes the data non-accessible to the outside world.
 Inheritance- Inheritance is the process in which two classes have an is-a
relationship among each other and objects of one class acquire properties and
features of the other class. The class which inherits the features is known as the
child class, and the class whose features it inherited is called the parent class. For
example, Class Vehicle is the parent class, and Class Bus, Car, and Bike are child
classes.
 Polymorphism- It means many forms. It is the ability to take more than one form.
It is a feature that provides a function or an operator with more than one
definition. It can be implemented using function overloading, operator overload,
function overriding, virtual function.
Advantages of OOPs
There are various advantages of object-oriented programming.
 OOPs provide reusability to the code and extend the use of existing classes.
 In OOPs, it is easy to maintain code as there are classes and objects, which helps in
making it easy to maintain rather than restructuring.
 It also helps in data hiding, keeping the data and information safe from leaking or getting
exposed.
 Object-oriented programming is easy to implement.
• Project Size and Complexity: Structured Programming for smaller, linear
tasks; OOP for larger, more complex applications.
• Team Expertise: Consider the skills and familiarity of the development
team.
Choosing Between Them:
Both paradigms have their strengths and applications.
• The choice depends on project requirements, complexity, and
team expertise.
• Understanding these paradigms helps in designing efficient and
maintainable software solutions.
Conclusion

More Related Content

PPTX
Object Oriented Programming intro Lecture 1.pptx
PPTX
Object Oriented Programming using c++ main four piller in this
PPTX
Object Oriented Programming.pptx its a opps concept in c++ which is helpful
PPT
Unit 1- Basic concept of object-oriented-programming.ppt
PDF
What is Object-Oriented Programming (OOP) and Why Do We Need It?
PDF
OOPS_Unit_1
PPT
Basic concept of OOP's
PPT
2 Object Oriented Programming
Object Oriented Programming intro Lecture 1.pptx
Object Oriented Programming using c++ main four piller in this
Object Oriented Programming.pptx its a opps concept in c++ which is helpful
Unit 1- Basic concept of object-oriented-programming.ppt
What is Object-Oriented Programming (OOP) and Why Do We Need It?
OOPS_Unit_1
Basic concept of OOP's
2 Object Oriented Programming

Similar to Introduction to Object Oriented Programming.pptx (20)

PPTX
OOP.pptx
PDF
Object Oriented Programming Lecture Notes
PPTX
JAVA - Oops Concept.pptx
PPTX
CPP-Unit 1.pptx
PPTX
Object Oriented Program Class 12 Computer Science
PPT
Share Unit 1- Basic concept of object-oriented-programming.ppt
PDF
chapter-6-oops.pdf
PDF
OOP ppt.pdf
PPTX
fileE_1722655797_5000762_Unit-1OOPS.pptx
PPTX
Software_Engineering_Presentation (1).pptx
PPTX
OOP-1.pptx
PDF
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
PPTX
1 intro
PPTX
Principles of OOPs.pptx
PPT
Unit v(dsc++)
PPTX
Birasa 1
PPTX
JAVA PROGRAMMING
DOCX
Unit1 jaava
PDF
Oops concepts || Object Oriented Programming Concepts in Java
PPTX
JAVA PROGRAMMINGD
OOP.pptx
Object Oriented Programming Lecture Notes
JAVA - Oops Concept.pptx
CPP-Unit 1.pptx
Object Oriented Program Class 12 Computer Science
Share Unit 1- Basic concept of object-oriented-programming.ppt
chapter-6-oops.pdf
OOP ppt.pdf
fileE_1722655797_5000762_Unit-1OOPS.pptx
Software_Engineering_Presentation (1).pptx
OOP-1.pptx
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
1 intro
Principles of OOPs.pptx
Unit v(dsc++)
Birasa 1
JAVA PROGRAMMING
Unit1 jaava
Oops concepts || Object Oriented Programming Concepts in Java
JAVA PROGRAMMINGD
Ad

Recently uploaded (20)

PPTX
Pharma ospi slides which help in ospi learning
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Computing-Curriculum for Schools in Ghana
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
01-Introduction-to-Information-Management.pdf
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
Pharma ospi slides which help in ospi learning
human mycosis Human fungal infections are called human mycosis..pptx
Computing-Curriculum for Schools in Ghana
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Final Presentation General Medicine 03-08-2024.pptx
Weekly quiz Compilation Jan -July 25.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
01-Introduction-to-Information-Management.pdf
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
O7-L3 Supply Chain Operations - ICLT Program
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Supply Chain Operations Speaking Notes -ICLT Program
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Complications of Minimal Access Surgery at WLH
Microbial diseases, their pathogenesis and prophylaxis
VCE English Exam - Section C Student Revision Booklet
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Module 4: Burden of Disease Tutorial Slides S2 2025
Ad

Introduction to Object Oriented Programming.pptx

  • 1. Structured Vs Object Oriented Programming LECTURE # 01 FC-III (ADP-II-CS) Prepare By: Umber Ismail
  • 2. Structured Programming “Emphasizes breaking down programs into smaller, manageable parts (functions or procedures). “ Key Features: 1.Modularity: Programs are divided into functions, enhancing clarity and ease of maintenance. 2.Control Structures: Uses sequences, loops, and conditionals for flow control. 3.Procedural Abstraction: Focuses on procedures/functions to achieve tasks. Example:  Real-World Analogy: Building a house using modular components (walls, doors, windows).  Programming Example: Calculating payroll using separate functions for input, computation, and
  • 4. Concept Of Object Oriented Programming OOP is an approach or a Programming pattern where the programs are structured around objects rather than functions and logic. It makes the data partitioned into two memory areas, i.e., data and functions, and helps make the code flexible and modular. Object-oriented programming mainly focuses on objects that are required to be manipulated. In OOPs, it can represent data as objects that have attributes and functions.
  • 5. Why use OOP?  Object Oriented Programming (OOP) is one of the most widely used programming paradigm  Why is it extensively used?  Well suited for building trivial and complex applications  Allows re-use of code thereby increasing productivity  New features can be easily built into the existing code  Reduced production cost and maintenance cost  Common programming languages used for OOP include C++, Java, and C#
  • 6. Basic Object-Oriented Programming  Object-An O Object can be defined as an entity that has a state and behavior, or in other words, anything that exists physically in the world is called an object. It can represent a dog, a person, a table, etc. An object means the combination of data and programs, which further represent an entity.  Classes-Class can be defined as a blueprint of the object. It is basically a collection of objects which act as building blocks.  Abstraction- Abstraction helps in the data hiding process. It helps in displaying the essential features without showing the details or the functionality to the user. It avoids unnecessary information or irrelevant details and shows only that specific part which the user wants to see.  Q wza
  • 7. Basic Object-Oriented Programming  Encapsulation- The wrapping up of data and functions together in a single unit is known as encapsulation. It can be achieved by making the data members' scope private and the member function’s scope public to access these data members. Encapsulation makes the data non-accessible to the outside world.  Inheritance- Inheritance is the process in which two classes have an is-a relationship among each other and objects of one class acquire properties and features of the other class. The class which inherits the features is known as the child class, and the class whose features it inherited is called the parent class. For example, Class Vehicle is the parent class, and Class Bus, Car, and Bike are child classes.  Polymorphism- It means many forms. It is the ability to take more than one form. It is a feature that provides a function or an operator with more than one definition. It can be implemented using function overloading, operator overload, function overriding, virtual function.
  • 8. Advantages of OOPs There are various advantages of object-oriented programming.  OOPs provide reusability to the code and extend the use of existing classes.  In OOPs, it is easy to maintain code as there are classes and objects, which helps in making it easy to maintain rather than restructuring.  It also helps in data hiding, keeping the data and information safe from leaking or getting exposed.  Object-oriented programming is easy to implement.
  • 9. • Project Size and Complexity: Structured Programming for smaller, linear tasks; OOP for larger, more complex applications. • Team Expertise: Consider the skills and familiarity of the development team. Choosing Between Them:
  • 10. Both paradigms have their strengths and applications. • The choice depends on project requirements, complexity, and team expertise. • Understanding these paradigms helps in designing efficient and maintainable software solutions. Conclusion