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

What's hot (20)

PPTX
Object oriented programming
Amit Soni (CTFL)
 
PPTX
Java Data Types
Spotle.ai
 
PPT
Object-oriented concepts
BG Java EE Course
 
PPTX
Access specifier
zindadili
 
PPT
Basic concepts of object oriented programming
Sachin Sharma
 
PPTX
Object Oriented Programming Using C++
Muhammad Waqas
 
PPTX
OOP Introduction with java programming language
Md.Al-imran Roton
 
PPTX
Basic Concepts of OOPs (Object Oriented Programming in Java)
Michelle Anne Meralpis
 
PPTX
Oop c++class(final).ppt
Alok Kumar
 
PPTX
object oriented Programming ppt
Nitesh Dubey
 
PPTX
Relational model
Dabbal Singh Mahara
 
PPTX
Data Types - Premetive and Non Premetive
Raj Naik
 
PPTX
Multithreading in java
Monika Mishra
 
PPTX
Polymorphism in java
Elizabeth alexander
 
PPTX
Classes, objects in JAVA
Abhilash Nair
 
PPTX
Data types in java
HarshitaAshwani
 
PPTX
Vectors in Java
Abhilash Nair
 
PPTX
Encapsulation
Githushan Gengaparam
 
PDF
The Object Model
yndaravind
 
PPTX
OOPS Basics With Example
Thooyavan Venkatachalam
 
Object oriented programming
Amit Soni (CTFL)
 
Java Data Types
Spotle.ai
 
Object-oriented concepts
BG Java EE Course
 
Access specifier
zindadili
 
Basic concepts of object oriented programming
Sachin Sharma
 
Object Oriented Programming Using C++
Muhammad Waqas
 
OOP Introduction with java programming language
Md.Al-imran Roton
 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Michelle Anne Meralpis
 
Oop c++class(final).ppt
Alok Kumar
 
object oriented Programming ppt
Nitesh Dubey
 
Relational model
Dabbal Singh Mahara
 
Data Types - Premetive and Non Premetive
Raj Naik
 
Multithreading in java
Monika Mishra
 
Polymorphism in java
Elizabeth alexander
 
Classes, objects in JAVA
Abhilash Nair
 
Data types in java
HarshitaAshwani
 
Vectors in Java
Abhilash Nair
 
Encapsulation
Githushan Gengaparam
 
The Object Model
yndaravind
 
OOPS Basics With Example
Thooyavan Venkatachalam
 

Similar to Object Oriented Programming Concepts for beginners (20)

PPTX
SKILLWISE - OOPS CONCEPT
Skillwise Group
 
DOC
Questpond - Top 10 Interview Questions and Answers on OOPS
gdrealspace
 
PPTX
An overview of Object Oriented Programming in C#.
prajapatrishabh421
 
PPTX
Object oriented programming
Saiful Islam Sany
 
PPT
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
akashsachu221
 
PPTX
Oops concepts
GopalSB
 
PPTX
Object oriented programming
baabtra.com - No. 1 supplier of quality freshers
 
PPTX
CPP Object Oriented Concepts(OOPS).pptx
adityakumardas16
 
PPTX
Object oriented programming 6 oop with c++
Vaibhav Khanna
 
PPTX
Introduction
Preeti Mishra
 
PPTX
AkhileshD_Presentation_Core_Java_OOPs.pptx
Akhilesh740777
 
PPTX
C++ in object oriented programming
Saket Khopkar
 
PPTX
Introduction to oop and java fundamentals
AnsgarMary
 
PPTX
Object Oriented Programming ppt presentation
AyanaRukasar
 
PPT
Object -oriented analysis and design.ppt
pierrerj05
 
PPTX
Object oriented programming
Sandeep Karthikeyan
 
PPTX
Object Oriented Programming Tutorial.pptx
ethiouniverse
 
PDF
1unit-120324103142-phpapp02.pdf
SahajShrimal1
 
PPTX
Intro to oop.pptx
UmerUmer25
 
PPTX
1 unit (oops)
Jay Patel
 
SKILLWISE - OOPS CONCEPT
Skillwise Group
 
Questpond - Top 10 Interview Questions and Answers on OOPS
gdrealspace
 
An overview of Object Oriented Programming in C#.
prajapatrishabh421
 
Object oriented programming
Saiful Islam Sany
 
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
akashsachu221
 
Oops concepts
GopalSB
 
CPP Object Oriented Concepts(OOPS).pptx
adityakumardas16
 
Object oriented programming 6 oop with c++
Vaibhav Khanna
 
Introduction
Preeti Mishra
 
AkhileshD_Presentation_Core_Java_OOPs.pptx
Akhilesh740777
 
C++ in object oriented programming
Saket Khopkar
 
Introduction to oop and java fundamentals
AnsgarMary
 
Object Oriented Programming ppt presentation
AyanaRukasar
 
Object -oriented analysis and design.ppt
pierrerj05
 
Object oriented programming
Sandeep Karthikeyan
 
Object Oriented Programming Tutorial.pptx
ethiouniverse
 
1unit-120324103142-phpapp02.pdf
SahajShrimal1
 
Intro to oop.pptx
UmerUmer25
 
1 unit (oops)
Jay Patel
 
Ad

Recently uploaded (20)

PDF
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
PDF
Salesforce CRM Services.VALiNTRY360
VALiNTRY360
 
PPTX
How Odoo Became a Game-Changer for an IT Company in Manufacturing ERP
SatishKumar2651
 
PDF
Capcut Pro Crack For PC Latest Version {Fully Unlocked} 2025
hashhshs786
 
PDF
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
PPTX
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
PPTX
Platform for Enterprise Solution - Java EE5
abhishekoza1981
 
PDF
Revenue streams of the Wazirx clone script.pdf
aaronjeffray
 
PPTX
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
PPTX
Human Resources Information System (HRIS)
Amity University, Patna
 
PDF
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
PDF
Executive Business Intelligence Dashboards
vandeslie24
 
PPTX
The Role of a PHP Development Company in Modern Web Development
SEO Company for School in Delhi NCR
 
PPTX
3uTools Full Crack Free Version Download [Latest] 2025
muhammadgurbazkhan
 
PDF
GridView,Recycler view, API, SQLITE& NetworkRequest.pdf
Nabin Dhakal
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PPT
MergeSortfbsjbjsfk sdfik k
RafishaikIT02044
 
PDF
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
PPTX
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
PPTX
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
Salesforce CRM Services.VALiNTRY360
VALiNTRY360
 
How Odoo Became a Game-Changer for an IT Company in Manufacturing ERP
SatishKumar2651
 
Capcut Pro Crack For PC Latest Version {Fully Unlocked} 2025
hashhshs786
 
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
Platform for Enterprise Solution - Java EE5
abhishekoza1981
 
Revenue streams of the Wazirx clone script.pdf
aaronjeffray
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
Human Resources Information System (HRIS)
Amity University, Patna
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
Executive Business Intelligence Dashboards
vandeslie24
 
The Role of a PHP Development Company in Modern Web Development
SEO Company for School in Delhi NCR
 
3uTools Full Crack Free Version Download [Latest] 2025
muhammadgurbazkhan
 
GridView,Recycler view, API, SQLITE& NetworkRequest.pdf
Nabin Dhakal
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
MergeSortfbsjbjsfk sdfik k
RafishaikIT02044
 
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
Ad

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.