SlideShare a Scribd company logo
2
Most read
5
Most read
11
Most read
Introduction
to
Object Oriented Programming
Vibhawa Nirmal Wijerathna
What is Object Oriented Programming ?
• Object oriented Programming is a programming paradigm based on the concept of
“Objects”.
• The main aim of object-oriented programming is to implement real-world entities, for
example, object, classes, abstraction, inheritance, polymorphism, etc.
Why Object-Oriented Programming ?
• Easy for troubleshooting
• Cades can be able to reuse
• Flexible
• Low cost of development
• Increase Maintainability
Why not Object-Oriented Programming ?
• Complex with Planning
• Programmer should be skilled with technology
• Flexible
What is a Class?
• A Class is group of objects which have common features
• Also class is a "blueprint" for creating objects.
What is an Object ?
• An entity that has state and behavior
Example: Chair, Bike , Car
• Object has three characteristics
• State
• Behavior
• Identity
Example:
Pen is an object.
Its name is Reynolds; color is white; known as its state.
It is used to write; writing is its behavior.
Class and Object
Dog
(class)
Dog 1
(Object)
Dog 2
(Object)
Attributes
And
Behaviors
Object-Oriented Programming Concepts
• Inheritance
• Polymorphism
• Abstraction
• Encapsulation
Inheritance
• Inheritance is possible to inherit attributes and the methods from one class to another class.
• There are two types of classes
• Super Class – the class being inherited from
• Sub Class - the class that inherits from another class
• Types of Inheritance
• Single
• Multiple
• Multi- Level
• Hierarchical
Inheritance Cont.
Single Inheritance
Multi Level Inheritance Hybrid Inheritance
Multiple Inheritance
Encapsulation
• Principle of wrapping variables and codes together as a single unit.
• It is a mechanism that binds the code and the variables together.
• Encapsulation supports to
• Hide Data
• Testing easily
• Reusability
• Increased Flexibility
Abstraction
• Abstraction is the process of hiding certain details and showing only essential information to the user.
• Also defined as the process of identifying only the required characteristics of an object ignoring the irrelevant
details.
Polymorphism
• Polymorphism means "many forms”.
• Polymorphism allows us to perform a single action in different ways.
Thank
YouVibhawa Nirmal Wijerathna

More Related Content

PPTX
Introduction to oop
colleges
 
PPTX
concept of oops
prince sharma
 
PPT
Object Oriented Programming Concepts
thinkphp
 
PPTX
Inheritance in Object Oriented Programming
Ashita Agrawal
 
PPT
Basic concepts of object oriented programming
Sachin Sharma
 
PPT
Oop Presentation
Ghaffar Khan
 
PPTX
Object Oriented Programming ppt presentation
AyanaRukasar
 
PPT
Oops ppt
abhayjuneja
 
Introduction to oop
colleges
 
concept of oops
prince sharma
 
Object Oriented Programming Concepts
thinkphp
 
Inheritance in Object Oriented Programming
Ashita Agrawal
 
Basic concepts of object oriented programming
Sachin Sharma
 
Oop Presentation
Ghaffar Khan
 
Object Oriented Programming ppt presentation
AyanaRukasar
 
Oops ppt
abhayjuneja
 

What's hot (20)

PPTX
Object Oriented Programming
Iqra khalil
 
PPTX
Basic Concepts of OOPs (Object Oriented Programming in Java)
Michelle Anne Meralpis
 
PPTX
1 unit (oops)
Jay Patel
 
PPTX
Super keyword in java
Hitesh Kumar
 
PPTX
Classes, objects in JAVA
Abhilash Nair
 
PPTX
Polymorphism in c++(ppt)
Sanjit Shaw
 
PPTX
OOP Introduction with java programming language
Md.Al-imran Roton
 
PPTX
Interface in java
PhD Research Scholar
 
PPTX
class and objects
Payel Guria
 
PPTX
Procedural vs. object oriented programming
Haris Bin Zahid
 
PPTX
[OOP - Lec 01] Introduction to OOP
Muhammad Hammad Waseem
 
PDF
Polymorphism in oop
MustafaIbrahimy
 
PPTX
Event Handling in java
Google
 
PPTX
WHAT IS ABSTRACTION IN JAVA
sivasundari6
 
PDF
Methods in Java
Jussi Pohjolainen
 
PDF
Class and Objects in Java
Spotle.ai
 
PPTX
Java(Polymorphism)
harsh kothari
 
PPTX
Introduction to Object Oriented Programming
Moutaz Haddara
 
PPT
Inheritance and Polymorphism
BG Java EE Course
 
PDF
C++ OOPS Concept
Boopathi K
 
Object Oriented Programming
Iqra khalil
 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Michelle Anne Meralpis
 
1 unit (oops)
Jay Patel
 
Super keyword in java
Hitesh Kumar
 
Classes, objects in JAVA
Abhilash Nair
 
Polymorphism in c++(ppt)
Sanjit Shaw
 
OOP Introduction with java programming language
Md.Al-imran Roton
 
Interface in java
PhD Research Scholar
 
class and objects
Payel Guria
 
Procedural vs. object oriented programming
Haris Bin Zahid
 
[OOP - Lec 01] Introduction to OOP
Muhammad Hammad Waseem
 
Polymorphism in oop
MustafaIbrahimy
 
Event Handling in java
Google
 
WHAT IS ABSTRACTION IN JAVA
sivasundari6
 
Methods in Java
Jussi Pohjolainen
 
Class and Objects in Java
Spotle.ai
 
Java(Polymorphism)
harsh kothari
 
Introduction to Object Oriented Programming
Moutaz Haddara
 
Inheritance and Polymorphism
BG Java EE Course
 
C++ OOPS Concept
Boopathi K
 
Ad

Similar to Object Oriented Programming Concepts for beginners (20)

PPTX
OOP Presentation.pptx
DurgaPrasadVasantati
 
PPTX
OOP Presentation.pptx
DurgaPrasadVasantati
 
PPTX
Concepts of oop1
SheetalPareek
 
PPTX
Object Oriented Programming (OOP) Introduction
SamuelAnsong6
 
PPTX
bbbnnjxhxshjsjskshsjsjshssddhjddjdjddhgd
zoobiarana76
 
PPTX
OOPS Concept.pptx
VettrikanthS
 
PDF
Oops concepts
ACCESS Health Digital
 
PPTX
object oriented programming(PYTHON)
Jyoti shukla
 
PPTX
Object Oriented Programming Concepts
Abhigyan Singh Yadav
 
PPTX
java part 1 computer science.pptx
MUHAMMED MASHAHIL PUKKUNNUMMAL
 
PDF
Programming Laboratory Unit 1.pdf
swapnilslide2019
 
PPTX
object oriented programing lecture 1
Geophery sanga
 
PPTX
SKILLWISE - OOPS CONCEPT
Skillwise Group
 
PPTX
Object Oriented Programming - Cheat sheet.pptx
MOSIUOA WESI
 
PPTX
Object oriented programming concepts
rahuld115
 
PPTX
Object oriented programming concepts
rahuld115
 
PPTX
object oriented programming and methodology.pptx
ayush626953
 
PPTX
07 intro2 oop
Daiva Adisurya
 
PDF
Classes are blueprints for creating objects
SSSs599507
 
OOP Presentation.pptx
DurgaPrasadVasantati
 
OOP Presentation.pptx
DurgaPrasadVasantati
 
Concepts of oop1
SheetalPareek
 
Object Oriented Programming (OOP) Introduction
SamuelAnsong6
 
bbbnnjxhxshjsjskshsjsjshssddhjddjdjddhgd
zoobiarana76
 
OOPS Concept.pptx
VettrikanthS
 
Oops concepts
ACCESS Health Digital
 
object oriented programming(PYTHON)
Jyoti shukla
 
Object Oriented Programming Concepts
Abhigyan Singh Yadav
 
java part 1 computer science.pptx
MUHAMMED MASHAHIL PUKKUNNUMMAL
 
Programming Laboratory Unit 1.pdf
swapnilslide2019
 
object oriented programing lecture 1
Geophery sanga
 
SKILLWISE - OOPS CONCEPT
Skillwise Group
 
Object Oriented Programming - Cheat sheet.pptx
MOSIUOA WESI
 
Object oriented programming concepts
rahuld115
 
Object oriented programming concepts
rahuld115
 
object oriented programming and methodology.pptx
ayush626953
 
07 intro2 oop
Daiva Adisurya
 
Classes are blueprints for creating objects
SSSs599507
 
Ad

Recently uploaded (20)

PDF
ShowUs: Pharo Stream Deck (ESUG 2025, Gdansk)
ESUG
 
PDF
Microsoft Teams Essentials; The pricing and the versions_PDF.pdf
Q-Advise
 
PDF
Exploring AI Agents in Process Industries
amoreira6
 
PPTX
Contractor Management Platform and Software Solution for Compliance
SHEQ Network Limited
 
PPT
Activate_Methodology_Summary presentatio
annapureddyn
 
PPTX
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
bbedford2
 
PPTX
TestNG for Java Testing and Automation testing
ssuser0213cb
 
PDF
Bandai Playdia The Book - David Glotz
BluePanther6
 
PPTX
Explanation about Structures in C language.pptx
Veeral Rathod
 
PDF
lesson-2-rules-of-netiquette.pdf.bshhsjdj
jasmenrojas249
 
PPTX
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
PDF
QAware_Mario-Leander_Reimer_Architecting and Building a K8s-based AI Platform...
QAware GmbH
 
PDF
Jenkins: An open-source automation server powering CI/CD Automation
SaikatBasu37
 
PPTX
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
PDF
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
PPTX
Web Testing.pptx528278vshbuqffqhhqiwnwuq
studylike474
 
PDF
Build Multi-agent using Agent Development Kit
FadyIbrahim23
 
PPTX
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
PPTX
Presentation about variables and constant.pptx
kr2589474
 
PPTX
Presentation about variables and constant.pptx
safalsingh810
 
ShowUs: Pharo Stream Deck (ESUG 2025, Gdansk)
ESUG
 
Microsoft Teams Essentials; The pricing and the versions_PDF.pdf
Q-Advise
 
Exploring AI Agents in Process Industries
amoreira6
 
Contractor Management Platform and Software Solution for Compliance
SHEQ Network Limited
 
Activate_Methodology_Summary presentatio
annapureddyn
 
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
bbedford2
 
TestNG for Java Testing and Automation testing
ssuser0213cb
 
Bandai Playdia The Book - David Glotz
BluePanther6
 
Explanation about Structures in C language.pptx
Veeral Rathod
 
lesson-2-rules-of-netiquette.pdf.bshhsjdj
jasmenrojas249
 
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
QAware_Mario-Leander_Reimer_Architecting and Building a K8s-based AI Platform...
QAware GmbH
 
Jenkins: An open-source automation server powering CI/CD Automation
SaikatBasu37
 
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
Web Testing.pptx528278vshbuqffqhhqiwnwuq
studylike474
 
Build Multi-agent using Agent Development Kit
FadyIbrahim23
 
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
Presentation about variables and constant.pptx
kr2589474
 
Presentation about variables and constant.pptx
safalsingh810
 

Object Oriented Programming Concepts for beginners

  • 2. What is Object Oriented Programming ? • Object oriented Programming is a programming paradigm based on the concept of “Objects”. • The main aim of object-oriented programming is to implement real-world entities, for example, object, classes, abstraction, inheritance, polymorphism, etc.
  • 3. Why Object-Oriented Programming ? • Easy for troubleshooting • Cades can be able to reuse • Flexible • Low cost of development • Increase Maintainability
  • 4. Why not Object-Oriented Programming ? • Complex with Planning • Programmer should be skilled with technology • Flexible
  • 5. What is a Class? • A Class is group of objects which have common features • Also class is a "blueprint" for creating objects.
  • 6. What is an Object ? • An entity that has state and behavior Example: Chair, Bike , Car • Object has three characteristics • State • Behavior • Identity Example: Pen is an object. Its name is Reynolds; color is white; known as its state. It is used to write; writing is its behavior.
  • 7. Class and Object Dog (class) Dog 1 (Object) Dog 2 (Object) Attributes And Behaviors
  • 8. Object-Oriented Programming Concepts • Inheritance • Polymorphism • Abstraction • Encapsulation
  • 9. Inheritance • Inheritance is possible to inherit attributes and the methods from one class to another class. • There are two types of classes • Super Class – the class being inherited from • Sub Class - the class that inherits from another class • Types of Inheritance • Single • Multiple • Multi- Level • Hierarchical
  • 10. Inheritance Cont. Single Inheritance Multi Level Inheritance Hybrid Inheritance Multiple Inheritance
  • 11. Encapsulation • Principle of wrapping variables and codes together as a single unit. • It is a mechanism that binds the code and the variables together. • Encapsulation supports to • Hide Data • Testing easily • Reusability • Increased Flexibility
  • 12. Abstraction • Abstraction is the process of hiding certain details and showing only essential information to the user. • Also defined as the process of identifying only the required characteristics of an object ignoring the irrelevant details.
  • 13. Polymorphism • Polymorphism means "many forms”. • Polymorphism allows us to perform a single action in different ways.