SlideShare a Scribd company logo
Welcome
Presentation To: Md. Reduanul Haque
Lecturer of CSE
Daffodil International University
Presentation About
Object - Oriented
Programming Concepts
Group Members
 Pritom Chaki ID: 151-15-453
 Nur E Nahain Shanto ID:151-15-245
 Kumol Khanto Bhoumik ID:151-15-254
 Mokabbir Alam Sani ID: 151-15-240
Topics
 Fundamental of OOP
 Encapsulation
 Inheritance
 Abstract Class
 Association
 Polymorphism
 Interface
 Exceptional Handling
Fundamental of OOP
To know the Object Oriented Programming we
should know two things:
Object
Class
Object
 Objects are key to understanding object-oriented technology
 Definition: An object is a bundle of variables and related
methods.
 An object has two property:
1. Has property
2. Does Property
Example:
For Tourist Guide App:
Has Property: Tourists, Places, Transports, Hotel;
Does Property: Search for Places, Login, Search or Booking Transport
and Hotel
Class
 Software “blueprints” for objects are called classes
Definition:
A class is a blueprint or prototype that defines the variables and
methods common to all objects of a certain kind
 Each object has a class which defines its data(Has property) and
behavior(Does property).
Encapsulation
 Encapsulation is the mechanism that binds the data &
function in one form known as class.
 The data & function may be private or public.
 Data fields are private.
 Constructors and assessors are defined (getters and setters).
Example
Encapsulation Cont….
 Ensures that structural changes remain local:
Changing the class internals does not affect any code
outside of the class
Changing methods' implementation
does not reflect the clients using them
 Encapsulation allows adding some logic when
accessing client's data
 Hiding implementation details reduces complexity 
easier maintenance
Inheritance
Definition: Inheritance is transitive relation, allow classes to be defined
in terms of other classes
 A derived class extends its base class
 It can add new members but cannot remove derived ones
 Declaring new members with the same name or signature
hides the inherited ones
 A class can declare virtual methods and properties
 Derived classes can override the implementation of these members
Example
-----------------
Abstract Class
 An abstract class is a class that is declared abstract —it may
or may not include abstract methods.
 Abstract classes cannot be instantiated, but they can be
subclassed.
 When an abstract class is subclassed, the subclass usually
provides implementations for all of the abstract methods in
its parent class.
Example:
 Class 1:
 Class 2:
Association
 Association establish relationship between two classes
through their objects.
 The relationship can be one to one, One to many, many
to one and many to many.
Example
Polymorphism
“Poly”= Many, “Morphism”= forms
Polymorphism is the ability of an object to take on many
forms.
The most common use of polymorphism in OOP occurs
when a parent class reference is used to refer to a child
class object.
.
Polymorphism Cont…
 Polymorphism ability to take more than one form
(objects have more than one type)
A class can be used through its parent interface
A child class may override some of the behaviors of the
parent class
 Polymorphism allows abstract operations to be defined
and used
Abstract operations are defined in the base class'
interface and implemented in the child classes
Example
Interface
 An interface in java is a blueprint of a class. It has static
constants and abstract methods only.
 The interface in java is a mechanism to achieve fully
abstraction. There can be only abstract methods in the java
interface not method body. It is used to achieve fully abstraction
and multiple inheritance in Java.
 Java Interface also represents a relationship.
 It cannot be instantiated just like abstract class.
Use of Java interface
 It is used to achieve fully abstraction.
 By interface, we can support the functionality of multiple
inheritance.
 It can be used to achieve loose coupling.
Example
Exception Handling
 The exception handling in java is one of the powerful mechanism
to handle the runtime errors so that normal flow of the
application can be maintained.
 There are three types of Exception Handling
I. Checked Exception
II. Unchecked Exception
III. Error
Exception Handling Cont….
 1) Checked Exception: The classes that extend Throwable class except
RuntimeException and Error are known as checked exceptions e.g. IOException,
SQLException etc. Checked exceptions are checked at compile-time.
 2) Unchecked Exception: The classes that extend RuntimeException are known as
unchecked exceptions e.g. ArithmeticException, NullPointerException,
ArrayIndexOutOfBoundsException etc. Unchecked exceptions are not checked at
compile-time rather they are checked at runtime.
 3) Error: Error is irrecoverable e.g. OutOfMemoryError, VirtualMachineError,
AssertionError etc.
Exception Handling Cont….
 There are 5 keywords used in java exception handling.
I. Try
II. Catch
III. Finally
IV. Throw
V. Throws
Example
Have a Good Day!
For contact: facebook.com/pritom.chaki.77
pritom.cse.diu@gamil.com

More Related Content

What's hot (20)

Java abstract class & abstract methods
Java abstract class & abstract methods
Shubham Dwivedi
 
Control flow statements in java
Control flow statements in java
yugandhar vadlamudi
 
Java Exception handling
Java Exception handling
kamal kotecha
 
Java exception
Java exception
Arati Gadgil
 
OOP Introduction with java programming language
OOP Introduction with java programming language
Md.Al-imran Roton
 
Exception Handling in JAVA
Exception Handling in JAVA
SURIT DATTA
 
Inner classes in java
Inner classes in java
PhD Research Scholar
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in java
CPD INDIA
 
Abstract class and Interface
Abstract class and Interface
Haris Bin Zahid
 
Python Lambda Function
Python Lambda Function
Md Soyaib
 
Abstract class in java
Abstract class in java
Lovely Professional University
 
Polymorphism presentation in java
Polymorphism presentation in java
Ahsan Raja
 
Java Thread Synchronization
Java Thread Synchronization
Benj Del Mundo
 
Exception Handling in Java
Exception Handling in Java
lalithambiga kamaraj
 
Wrapper classes
Wrapper classes
Kongu Engineering College, Perundurai, Erode
 
Inheritance in java
Inheritance in java
Lovely Professional University
 
Oops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in Java
Madishetty Prathibha
 
Oops in Java
Oops in Java
malathip12
 
Method overloading
Method overloading
Lovely Professional University
 
Inheritance in java
Inheritance in java
Tech_MX
 
Java abstract class & abstract methods
Java abstract class & abstract methods
Shubham Dwivedi
 
Java Exception handling
Java Exception handling
kamal kotecha
 
OOP Introduction with java programming language
OOP Introduction with java programming language
Md.Al-imran Roton
 
Exception Handling in JAVA
Exception Handling in JAVA
SURIT DATTA
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in java
CPD INDIA
 
Abstract class and Interface
Abstract class and Interface
Haris Bin Zahid
 
Python Lambda Function
Python Lambda Function
Md Soyaib
 
Polymorphism presentation in java
Polymorphism presentation in java
Ahsan Raja
 
Java Thread Synchronization
Java Thread Synchronization
Benj Del Mundo
 
Oops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in Java
Madishetty Prathibha
 
Inheritance in java
Inheritance in java
Tech_MX
 

Similar to Object Oriented Programing JAVA presentaion (20)

Object oriented programming
Object oriented programming
MH Abid
 
Basics of object oriented programming
Basics of object oriented programming
Nitin Kumar Kashyap
 
OOP Presentation.pptx
OOP Presentation.pptx
DurgaPrasadVasantati
 
OOP Presentation.pptx
OOP Presentation.pptx
DurgaPrasadVasantati
 
java part 1 computer science.pptx
java part 1 computer science.pptx
MUHAMMED MASHAHIL PUKKUNNUMMAL
 
4-OOPS.pptx
4-OOPS.pptx
SatyamMishra237306
 
object oriented programing lecture 1
object oriented programing lecture 1
Geophery sanga
 
Object oriented programming
Object oriented programming
Saiful Islam Sany
 
04_-_Inheritance_Polymorphism_and_Interfaces.pdf
04_-_Inheritance_Polymorphism_and_Interfaces.pdf
markbrianBautista
 
Lecture 2 cst 205-281 oop
Lecture 2 cst 205-281 oop
ktuonlinenotes
 
OOPS – General Understanding in .NET
OOPS – General Understanding in .NET
Sabith Byari
 
Question and answer Programming
Question and answer Programming
Inocentshuja Ahmad
 
SKILLWISE - OOPS CONCEPT
SKILLWISE - OOPS CONCEPT
Skillwise Group
 
04 inheritance
04 inheritance
Pondugala Sowjanya
 
Object Oriented Principles
Object Oriented Principles
Emprovise
 
Shuvrojit Majumder . 25900120006 Object Oriented Programming (PCC-CS 503) ...
Shuvrojit Majumder . 25900120006 Object Oriented Programming (PCC-CS 503) ...
ShuvrojitMajumder
 
Characteristics of oop
Characteristics of oop
Rasim Izhar Ali
 
JAVA-PPT'S-complete-chrome.pptx
JAVA-PPT'S-complete-chrome.pptx
KunalYadav65140
 
JAVA-PPT'S.pptx
JAVA-PPT'S.pptx
RaazIndia
 
Object -oriented analysis and design.ppt
Object -oriented analysis and design.ppt
pierrerj05
 
Object oriented programming
Object oriented programming
MH Abid
 
Basics of object oriented programming
Basics of object oriented programming
Nitin Kumar Kashyap
 
object oriented programing lecture 1
object oriented programing lecture 1
Geophery sanga
 
04_-_Inheritance_Polymorphism_and_Interfaces.pdf
04_-_Inheritance_Polymorphism_and_Interfaces.pdf
markbrianBautista
 
Lecture 2 cst 205-281 oop
Lecture 2 cst 205-281 oop
ktuonlinenotes
 
OOPS – General Understanding in .NET
OOPS – General Understanding in .NET
Sabith Byari
 
Question and answer Programming
Question and answer Programming
Inocentshuja Ahmad
 
SKILLWISE - OOPS CONCEPT
SKILLWISE - OOPS CONCEPT
Skillwise Group
 
Object Oriented Principles
Object Oriented Principles
Emprovise
 
Shuvrojit Majumder . 25900120006 Object Oriented Programming (PCC-CS 503) ...
Shuvrojit Majumder . 25900120006 Object Oriented Programming (PCC-CS 503) ...
ShuvrojitMajumder
 
JAVA-PPT'S-complete-chrome.pptx
JAVA-PPT'S-complete-chrome.pptx
KunalYadav65140
 
JAVA-PPT'S.pptx
JAVA-PPT'S.pptx
RaazIndia
 
Object -oriented analysis and design.ppt
Object -oriented analysis and design.ppt
pierrerj05
 
Ad

More from Pritom Chaki (9)

Blockchain Technology and its Business Application
Blockchain Technology and its Business Application
Pritom Chaki
 
Matrix and It's Applications
Matrix and It's Applications
Pritom Chaki
 
Social Media & Privacy in Bangladesh
Social Media & Privacy in Bangladesh
Pritom Chaki
 
Leadership of Lord Krishna
Leadership of Lord Krishna
Pritom Chaki
 
Presentation skill-development (BUP)
Presentation skill-development (BUP)
Pritom Chaki
 
Global and local alignment (bioinformatics)
Global and local alignment (bioinformatics)
Pritom Chaki
 
Transmission media (data communication)
Transmission media (data communication)
Pritom Chaki
 
OSI 7 Layer Model
OSI 7 Layer Model
Pritom Chaki
 
Object Orinted Programing(OOP) concepts \
Object Orinted Programing(OOP) concepts \
Pritom Chaki
 
Blockchain Technology and its Business Application
Blockchain Technology and its Business Application
Pritom Chaki
 
Matrix and It's Applications
Matrix and It's Applications
Pritom Chaki
 
Social Media & Privacy in Bangladesh
Social Media & Privacy in Bangladesh
Pritom Chaki
 
Leadership of Lord Krishna
Leadership of Lord Krishna
Pritom Chaki
 
Presentation skill-development (BUP)
Presentation skill-development (BUP)
Pritom Chaki
 
Global and local alignment (bioinformatics)
Global and local alignment (bioinformatics)
Pritom Chaki
 
Transmission media (data communication)
Transmission media (data communication)
Pritom Chaki
 
Object Orinted Programing(OOP) concepts \
Object Orinted Programing(OOP) concepts \
Pritom Chaki
 
Ad

Recently uploaded (20)

Water demand - Types , variations and WDS
Water demand - Types , variations and WDS
dhanashree78
 
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
RATNANITINPATIL
 
Fundamentals of Digital Design_Class_21st May - Copy.pptx
Fundamentals of Digital Design_Class_21st May - Copy.pptx
drdebarshi1993
 
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
kippcam
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
djiceramil
 
4th International Conference on Computer Science and Information Technology (...
4th International Conference on Computer Science and Information Technology (...
ijait
 
chemistry investigatory project for class 12
chemistry investigatory project for class 12
Susis10
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Glands & Lugs, Simplex...
362 Alec Data Center Solutions-Slysium Data Center-AUH-Glands & Lugs, Simplex...
djiceramil
 
Flow Chart Proses Bisnis prosscesss.docx
Flow Chart Proses Bisnis prosscesss.docx
rifka575530
 
Montreal Dreamin' 25 - Introduction to the MuleSoft AI Chain (MAC) Project
Montreal Dreamin' 25 - Introduction to the MuleSoft AI Chain (MAC) Project
Alexandra N. Martinez
 
Decoding Kotlin - Your Guide to Solving the Mysterious in Kotlin - Devoxx PL ...
Decoding Kotlin - Your Guide to Solving the Mysterious in Kotlin - Devoxx PL ...
João Esperancinha
 
Présentation_gestion[1] [Autosaved].pptx
Présentation_gestion[1] [Autosaved].pptx
KHADIJAESSAKET
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
djiceramil
 
OCS Group SG - HPHT Well Design and Operation - SN.pdf
OCS Group SG - HPHT Well Design and Operation - SN.pdf
Muanisa Waras
 
ACEP Magazine Fifth Edition on 5june2025
ACEP Magazine Fifth Edition on 5june2025
Rahul
 
最新版美国圣莫尼卡学院毕业证(SMC毕业证书)原版定制
最新版美国圣莫尼卡学院毕业证(SMC毕业证书)原版定制
Taqyea
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
djiceramil
 
Impurities of Water and their Significance.pptx
Impurities of Water and their Significance.pptx
dhanashree78
 
The first edition of the AIAG-VDA FMEA.pptx
The first edition of the AIAG-VDA FMEA.pptx
Mayank Mathur
 
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Yannis
 
Water demand - Types , variations and WDS
Water demand - Types , variations and WDS
dhanashree78
 
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
RATNANITINPATIL
 
Fundamentals of Digital Design_Class_21st May - Copy.pptx
Fundamentals of Digital Design_Class_21st May - Copy.pptx
drdebarshi1993
 
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
kippcam
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
djiceramil
 
4th International Conference on Computer Science and Information Technology (...
4th International Conference on Computer Science and Information Technology (...
ijait
 
chemistry investigatory project for class 12
chemistry investigatory project for class 12
Susis10
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Glands & Lugs, Simplex...
362 Alec Data Center Solutions-Slysium Data Center-AUH-Glands & Lugs, Simplex...
djiceramil
 
Flow Chart Proses Bisnis prosscesss.docx
Flow Chart Proses Bisnis prosscesss.docx
rifka575530
 
Montreal Dreamin' 25 - Introduction to the MuleSoft AI Chain (MAC) Project
Montreal Dreamin' 25 - Introduction to the MuleSoft AI Chain (MAC) Project
Alexandra N. Martinez
 
Decoding Kotlin - Your Guide to Solving the Mysterious in Kotlin - Devoxx PL ...
Decoding Kotlin - Your Guide to Solving the Mysterious in Kotlin - Devoxx PL ...
João Esperancinha
 
Présentation_gestion[1] [Autosaved].pptx
Présentation_gestion[1] [Autosaved].pptx
KHADIJAESSAKET
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
djiceramil
 
OCS Group SG - HPHT Well Design and Operation - SN.pdf
OCS Group SG - HPHT Well Design and Operation - SN.pdf
Muanisa Waras
 
ACEP Magazine Fifth Edition on 5june2025
ACEP Magazine Fifth Edition on 5june2025
Rahul
 
最新版美国圣莫尼卡学院毕业证(SMC毕业证书)原版定制
最新版美国圣莫尼卡学院毕业证(SMC毕业证书)原版定制
Taqyea
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
djiceramil
 
Impurities of Water and their Significance.pptx
Impurities of Water and their Significance.pptx
dhanashree78
 
The first edition of the AIAG-VDA FMEA.pptx
The first edition of the AIAG-VDA FMEA.pptx
Mayank Mathur
 
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Yannis
 

Object Oriented Programing JAVA presentaion

  • 1. Welcome Presentation To: Md. Reduanul Haque Lecturer of CSE Daffodil International University
  • 2. Presentation About Object - Oriented Programming Concepts
  • 3. Group Members  Pritom Chaki ID: 151-15-453  Nur E Nahain Shanto ID:151-15-245  Kumol Khanto Bhoumik ID:151-15-254  Mokabbir Alam Sani ID: 151-15-240
  • 4. Topics  Fundamental of OOP  Encapsulation  Inheritance  Abstract Class  Association  Polymorphism  Interface  Exceptional Handling
  • 5. Fundamental of OOP To know the Object Oriented Programming we should know two things: Object Class
  • 6. Object  Objects are key to understanding object-oriented technology  Definition: An object is a bundle of variables and related methods.  An object has two property: 1. Has property 2. Does Property
  • 7. Example: For Tourist Guide App: Has Property: Tourists, Places, Transports, Hotel; Does Property: Search for Places, Login, Search or Booking Transport and Hotel
  • 8. Class  Software “blueprints” for objects are called classes Definition: A class is a blueprint or prototype that defines the variables and methods common to all objects of a certain kind  Each object has a class which defines its data(Has property) and behavior(Does property).
  • 9. Encapsulation  Encapsulation is the mechanism that binds the data & function in one form known as class.  The data & function may be private or public.  Data fields are private.  Constructors and assessors are defined (getters and setters).
  • 11. Encapsulation Cont….  Ensures that structural changes remain local: Changing the class internals does not affect any code outside of the class Changing methods' implementation does not reflect the clients using them  Encapsulation allows adding some logic when accessing client's data  Hiding implementation details reduces complexity  easier maintenance
  • 12. Inheritance Definition: Inheritance is transitive relation, allow classes to be defined in terms of other classes  A derived class extends its base class  It can add new members but cannot remove derived ones  Declaring new members with the same name or signature hides the inherited ones  A class can declare virtual methods and properties  Derived classes can override the implementation of these members
  • 14. Abstract Class  An abstract class is a class that is declared abstract —it may or may not include abstract methods.  Abstract classes cannot be instantiated, but they can be subclassed.  When an abstract class is subclassed, the subclass usually provides implementations for all of the abstract methods in its parent class.
  • 16. Association  Association establish relationship between two classes through their objects.  The relationship can be one to one, One to many, many to one and many to many.
  • 18. Polymorphism “Poly”= Many, “Morphism”= forms Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object. .
  • 19. Polymorphism Cont…  Polymorphism ability to take more than one form (objects have more than one type) A class can be used through its parent interface A child class may override some of the behaviors of the parent class  Polymorphism allows abstract operations to be defined and used Abstract operations are defined in the base class' interface and implemented in the child classes
  • 21. Interface  An interface in java is a blueprint of a class. It has static constants and abstract methods only.  The interface in java is a mechanism to achieve fully abstraction. There can be only abstract methods in the java interface not method body. It is used to achieve fully abstraction and multiple inheritance in Java.  Java Interface also represents a relationship.  It cannot be instantiated just like abstract class.
  • 22. Use of Java interface  It is used to achieve fully abstraction.  By interface, we can support the functionality of multiple inheritance.  It can be used to achieve loose coupling.
  • 24. Exception Handling  The exception handling in java is one of the powerful mechanism to handle the runtime errors so that normal flow of the application can be maintained.  There are three types of Exception Handling I. Checked Exception II. Unchecked Exception III. Error
  • 25. Exception Handling Cont….  1) Checked Exception: The classes that extend Throwable class except RuntimeException and Error are known as checked exceptions e.g. IOException, SQLException etc. Checked exceptions are checked at compile-time.  2) Unchecked Exception: The classes that extend RuntimeException are known as unchecked exceptions e.g. ArithmeticException, NullPointerException, ArrayIndexOutOfBoundsException etc. Unchecked exceptions are not checked at compile-time rather they are checked at runtime.  3) Error: Error is irrecoverable e.g. OutOfMemoryError, VirtualMachineError, AssertionError etc.
  • 26. Exception Handling Cont….  There are 5 keywords used in java exception handling. I. Try II. Catch III. Finally IV. Throw V. Throws
  • 28. Have a Good Day! For contact: facebook.com/pritom.chaki.77 [email protected]