SlideShare a Scribd company logo
OBJECT ORIENTED PROGRAMMING Made By Noshaba
WHAT IS OOP’S?
OOP stands for "Object-Oriented Programming." It's a way of structuring your code in
programming languages like C++,C# , python and java
Objects are self-contained units that combine data (attributes or properties) and the
functions (methods) that can operate on that data into a single entity.
DIFFERENCE BETWEEN PROCEDURAL AND OOP..
Data Organization: Procedural programming uses global variables for data,
whereas OOP encapsulates data within objects.
Code Structure: Procedural code is structured around functions, while OOP code is
organized around objects and their methods.
Data Access: In procedural programming, data is often accessible globally, leading
to potential data conflicts. In OOP, data is encapsulated within objects, making it more
controlled and secure.
Reusability: OOP promotes code reusability through classes and inheritance, making
it easier to create and reuse similar objects.
In summary, the key difference lies in how data is organized and accessed:
procedural programming uses global data and functions, while OOP encapsulates
data and behavior within objects, providing better structure and control
WHY WE NEED FOR OOP?
We need Object-Oriented Programming (OOP) in simple terms because it helps us
build software more efficiently and make it easier to understand and manage.
Certainly, let's simplify the need for Object-Oriented Programming (OOP) even
further:
Think of OOP as a way to make computer programs more organized and
understandable, just like how we use folders to organize our files on a computer.
Objects as Folders: In OOP, we treat different parts of our program as "objects,"
which are like folders. Each object contains its own stuff, like data and actions, just like
folders can contain files.
Reuse and Efficiency: OOP allows us to reuse these objects in different parts of our program,
similar to how we can use the same folder in various places on our computer. This makes our code
more efficient and saves us from doing the same work over and over.
Clean and Clear: Just as folders help us keep our files organized and easy to find, OOP helps us
keep our code organized and easy to understand. We can see what each object does and how it
relates to other objects.
Flexibility: If we want to change or add something in one part of our program, we can do it
without affecting other parts. It's like rearranging or adding files in one folder without disturbing
the contents of other folders.
So, OOP is like using folders to keep our computer files organized. It helps us reuse code, keep
our code clean and understandable, make changes easily, and collaborate effectively when
building software.
TECHNIQUE IN OOP
Class:
A class is like a blueprint or a template.
It tells the computer how to create something.
For example, a "Car" class is like a blueprint for making cars. It defines what a car should have
(like wheels and a color) and what it can do (like drive and stop).
public class Car
{
public string name;
public string model;
public void Greet()
{
Console.WriteLine("Hello, my car name is " + name);
}
}
OBJECT:
An object is a real thing that was created using a class.
It's like the actual car made from the "Car" blueprint.
Each object can have its own unique characteristics and can do things based on what
the class defined.
In even simpler terms, a class is a plan, and an object is something made from that
plan. For example, a "Recipe" (class) tells you how to make a cake, and the actual
"Cake" (object) is what you bake using that recipe
Encapsulation: This is like putting a protective shield around an object's data (attributes)
and methods. It keeps them safe from unwanted changes or access. You can only interact
with an object through its defined methods, which maintain control and security.
Inheritance: Inheritance is like passing down traits from parents to children. In OOP, you can
create new classes based on existing ones. The new class inherits attributes and methods
from the original class, making it easier to reuse code and build on existing functionality.
Abstraction:
Abstraction in Object-Oriented Programming (OOP) is a fundamental concept that focuses
on hiding unnecessary details and showing only the essential features of an object. It's like
creating a simplified interface for users to interact with, without needing to understand the
complex inner workings.
In simple terms, OOP is like playing with different types of toys (objects) that have their
own unique features (attributes) and things they can do (methods). These toys are created
based on specific blueprints (classes). Encapsulation keeps them safe and organized,
inheritance lets you create new toys with shared features, and polymorphism allows you to
use all your toys in a playful and flexible way.

More Related Content

Similar to Object oriented programming (oops) python (20)

PPTX
Intro to oop.pptx
UmerUmer25
 
PPTX
Characteristics-and-Advantages-of-Object-Oriented-Programming.pptx
mahendrasubedi2060
 
PPTX
CPP-Unit 1.pptx
YashKoli22
 
PPTX
Object Oriented Program Class 12 Computer Science
ShailendraPandey96
 
PPTX
introduction of Object oriented programming
RiturajJain8
 
PDF
L1-Introduction to OOPs concepts.pdf
BhanuJatinSingh
 
PDF
Introduction to Object Oriented Programming.pdf
ManishBej3
 
PDF
Computer_Programming_Part_II_Segment_01.pdf
et243047
 
PDF
object oriented programming concepts and explanation
SATYA136395
 
PPTX
Object-Oriented Programming in Real world Applications
MehmoodHasnain
 
PPTX
object oriented programing lecture 1
Geophery sanga
 
PPTX
Ch 1 Introduction to Object Oriented Programming.pptx
MahiDivya
 
PPTX
Oops concepts
Kanan Gandhi
 
PPTX
oop.pptx
KabitaParajuli3
 
PPTX
Object oriented programming
sana younas
 
PPTX
Object Oriented Programming.pptx its a opps concept in c++ which is helpful
vidhimangal05
 
PPTX
Object Oriented Programming using c++ main four piller in this
vidhimangal05
 
PPTX
Object oriented programming
baabtra.com - No. 1 supplier of quality freshers
 
PPTX
What is OOP_ (Object Oriented Programming) (1).pptx
hreempandya
 
PPT
Oops slide
Ashok Sharma
 
Intro to oop.pptx
UmerUmer25
 
Characteristics-and-Advantages-of-Object-Oriented-Programming.pptx
mahendrasubedi2060
 
CPP-Unit 1.pptx
YashKoli22
 
Object Oriented Program Class 12 Computer Science
ShailendraPandey96
 
introduction of Object oriented programming
RiturajJain8
 
L1-Introduction to OOPs concepts.pdf
BhanuJatinSingh
 
Introduction to Object Oriented Programming.pdf
ManishBej3
 
Computer_Programming_Part_II_Segment_01.pdf
et243047
 
object oriented programming concepts and explanation
SATYA136395
 
Object-Oriented Programming in Real world Applications
MehmoodHasnain
 
object oriented programing lecture 1
Geophery sanga
 
Ch 1 Introduction to Object Oriented Programming.pptx
MahiDivya
 
Oops concepts
Kanan Gandhi
 
oop.pptx
KabitaParajuli3
 
Object oriented programming
sana younas
 
Object Oriented Programming.pptx its a opps concept in c++ which is helpful
vidhimangal05
 
Object Oriented Programming using c++ main four piller in this
vidhimangal05
 
What is OOP_ (Object Oriented Programming) (1).pptx
hreempandya
 
Oops slide
Ashok Sharma
 

Recently uploaded (20)

PDF
mbse_An_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
PPTX
UNIT 1 - INTRODUCTION TO AI and AI tools and basic concept
gokuld13012005
 
PDF
Electrical Machines and Their Protection.pdf
Nabajyoti Banik
 
PPTX
仿制LethbridgeOffer加拿大莱斯桥大学毕业证范本,Lethbridge成绩单
Taqyea
 
PDF
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
PPTX
澳洲电子毕业证澳大利亚圣母大学水印成绩单UNDA学生证网上可查学历
Taqyea
 
PPTX
MODULE 04 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
PPTX
MODULE 05 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
PPTX
2025 CGI Congres - Surviving agile v05.pptx
Derk-Jan de Grood
 
PPTX
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
PDF
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
PDF
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
PPTX
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
PDF
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
PPTX
原版一样(EC Lille毕业证书)法国里尔中央理工学院毕业证补办
Taqyea
 
PPTX
Final Major project a b c d e f g h i j k l m
bharathpsnab
 
PPTX
darshai cross section and river section analysis
muk7971
 
PDF
Submit Your Papers-International Journal on Cybernetics & Informatics ( IJCI)
IJCI JOURNAL
 
PDF
REINFORCEMENT LEARNING IN DECISION MAKING SEMINAR REPORT
anushaashraf20
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
mbse_An_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
UNIT 1 - INTRODUCTION TO AI and AI tools and basic concept
gokuld13012005
 
Electrical Machines and Their Protection.pdf
Nabajyoti Banik
 
仿制LethbridgeOffer加拿大莱斯桥大学毕业证范本,Lethbridge成绩单
Taqyea
 
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
澳洲电子毕业证澳大利亚圣母大学水印成绩单UNDA学生证网上可查学历
Taqyea
 
MODULE 04 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
MODULE 05 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
2025 CGI Congres - Surviving agile v05.pptx
Derk-Jan de Grood
 
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
原版一样(EC Lille毕业证书)法国里尔中央理工学院毕业证补办
Taqyea
 
Final Major project a b c d e f g h i j k l m
bharathpsnab
 
darshai cross section and river section analysis
muk7971
 
Submit Your Papers-International Journal on Cybernetics & Informatics ( IJCI)
IJCI JOURNAL
 
REINFORCEMENT LEARNING IN DECISION MAKING SEMINAR REPORT
anushaashraf20
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
Ad

Object oriented programming (oops) python

  • 1. OBJECT ORIENTED PROGRAMMING Made By Noshaba
  • 2. WHAT IS OOP’S? OOP stands for "Object-Oriented Programming." It's a way of structuring your code in programming languages like C++,C# , python and java Objects are self-contained units that combine data (attributes or properties) and the functions (methods) that can operate on that data into a single entity.
  • 3. DIFFERENCE BETWEEN PROCEDURAL AND OOP.. Data Organization: Procedural programming uses global variables for data, whereas OOP encapsulates data within objects. Code Structure: Procedural code is structured around functions, while OOP code is organized around objects and their methods. Data Access: In procedural programming, data is often accessible globally, leading to potential data conflicts. In OOP, data is encapsulated within objects, making it more controlled and secure. Reusability: OOP promotes code reusability through classes and inheritance, making it easier to create and reuse similar objects. In summary, the key difference lies in how data is organized and accessed: procedural programming uses global data and functions, while OOP encapsulates data and behavior within objects, providing better structure and control
  • 4. WHY WE NEED FOR OOP? We need Object-Oriented Programming (OOP) in simple terms because it helps us build software more efficiently and make it easier to understand and manage. Certainly, let's simplify the need for Object-Oriented Programming (OOP) even further: Think of OOP as a way to make computer programs more organized and understandable, just like how we use folders to organize our files on a computer. Objects as Folders: In OOP, we treat different parts of our program as "objects," which are like folders. Each object contains its own stuff, like data and actions, just like folders can contain files.
  • 5. Reuse and Efficiency: OOP allows us to reuse these objects in different parts of our program, similar to how we can use the same folder in various places on our computer. This makes our code more efficient and saves us from doing the same work over and over. Clean and Clear: Just as folders help us keep our files organized and easy to find, OOP helps us keep our code organized and easy to understand. We can see what each object does and how it relates to other objects. Flexibility: If we want to change or add something in one part of our program, we can do it without affecting other parts. It's like rearranging or adding files in one folder without disturbing the contents of other folders. So, OOP is like using folders to keep our computer files organized. It helps us reuse code, keep our code clean and understandable, make changes easily, and collaborate effectively when building software.
  • 6. TECHNIQUE IN OOP Class: A class is like a blueprint or a template. It tells the computer how to create something. For example, a "Car" class is like a blueprint for making cars. It defines what a car should have (like wheels and a color) and what it can do (like drive and stop). public class Car { public string name; public string model; public void Greet() { Console.WriteLine("Hello, my car name is " + name); } }
  • 7. OBJECT: An object is a real thing that was created using a class. It's like the actual car made from the "Car" blueprint. Each object can have its own unique characteristics and can do things based on what the class defined. In even simpler terms, a class is a plan, and an object is something made from that plan. For example, a "Recipe" (class) tells you how to make a cake, and the actual "Cake" (object) is what you bake using that recipe
  • 8. Encapsulation: This is like putting a protective shield around an object's data (attributes) and methods. It keeps them safe from unwanted changes or access. You can only interact with an object through its defined methods, which maintain control and security. Inheritance: Inheritance is like passing down traits from parents to children. In OOP, you can create new classes based on existing ones. The new class inherits attributes and methods from the original class, making it easier to reuse code and build on existing functionality. Abstraction: Abstraction in Object-Oriented Programming (OOP) is a fundamental concept that focuses on hiding unnecessary details and showing only the essential features of an object. It's like creating a simplified interface for users to interact with, without needing to understand the complex inner workings. In simple terms, OOP is like playing with different types of toys (objects) that have their own unique features (attributes) and things they can do (methods). These toys are created based on specific blueprints (classes). Encapsulation keeps them safe and organized, inheritance lets you create new toys with shared features, and polymorphism allows you to use all your toys in a playful and flexible way.