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

PPTX
Interface in java
PhD Research Scholar
 
PPTX
Inheritance in c++
Vineeta Garg
 
PDF
Java Basic Oops Concept
atozknowledge .com
 
PPTX
Basic Concepts of OOPs (Object Oriented Programming in Java)
Michelle Anne Meralpis
 
PPTX
Java abstract class & abstract methods
Shubham Dwivedi
 
ODP
OOP java
xball977
 
PPTX
Constructor in java
Pavith Gunasekara
 
PPT
Java interfaces
Raja Sekhar
 
Interface in java
PhD Research Scholar
 
Inheritance in c++
Vineeta Garg
 
Java Basic Oops Concept
atozknowledge .com
 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Michelle Anne Meralpis
 
Java abstract class & abstract methods
Shubham Dwivedi
 
OOP java
xball977
 
Constructor in java
Pavith Gunasekara
 
Java interfaces
Raja Sekhar
 

What's hot (20)

PDF
Methods in Java
Jussi Pohjolainen
 
PPT
9. Input Output in java
Nilesh Dalvi
 
PPSX
Exception Handling
Reddhi Basu
 
PDF
Java threads
Prabhakaran V M
 
PPTX
Applets in java
Wani Zahoor
 
PPT
Java Threads
M Vishnuvardhan Reddy
 
PDF
Applets
Prabhakaran V M
 
PPT
Java Servlets
BG Java EE Course
 
PPTX
Super keyword in java
Hitesh Kumar
 
PPTX
Java constructors
QUONTRASOLUTIONS
 
PPTX
Classes, objects in JAVA
Abhilash Nair
 
PPTX
Threads in JAVA
Haldia Institute of Technology
 
PPTX
Polymorphism presentation in java
Ahsan Raja
 
PPTX
Presentation on-exception-handling
Nahian Ahmed
 
PPTX
Multithreading in java
Monika Mishra
 
PPTX
[OOP - Lec 08] Encapsulation (Information Hiding)
Muhammad Hammad Waseem
 
PPTX
Multi threading
gndu
 
PPTX
Access specifiers(modifiers) in java
HrithikShinde
 
PPTX
Abstract class and Interface
Haris Bin Zahid
 
PPT
Object Oriented Language
dheva B
 
Methods in Java
Jussi Pohjolainen
 
9. Input Output in java
Nilesh Dalvi
 
Exception Handling
Reddhi Basu
 
Java threads
Prabhakaran V M
 
Applets in java
Wani Zahoor
 
Java Threads
M Vishnuvardhan Reddy
 
Java Servlets
BG Java EE Course
 
Super keyword in java
Hitesh Kumar
 
Java constructors
QUONTRASOLUTIONS
 
Classes, objects in JAVA
Abhilash Nair
 
Polymorphism presentation in java
Ahsan Raja
 
Presentation on-exception-handling
Nahian Ahmed
 
Multithreading in java
Monika Mishra
 
[OOP - Lec 08] Encapsulation (Information Hiding)
Muhammad Hammad Waseem
 
Multi threading
gndu
 
Access specifiers(modifiers) in java
HrithikShinde
 
Abstract class and Interface
Haris Bin Zahid
 
Object Oriented Language
dheva B
 
Ad

Viewers also liked (6)

PPS
Java Exception handling
kamal kotecha
 
PPTX
Exceptional Handling in Java
QaziUmarF786
 
PPT
Handling Exceptions In C & C++[Part A]
ppd1961
 
PPT
Exception Handling
Sunil OS
 
PPT
String Handling
Bharat17485
 
PPTX
Exception handling
Abhishek Pachisia
 
Java Exception handling
kamal kotecha
 
Exceptional Handling in Java
QaziUmarF786
 
Handling Exceptions In C & C++[Part A]
ppd1961
 
Exception Handling
Sunil OS
 
String Handling
Bharat17485
 
Exception handling
Abhishek Pachisia
 
Ad

Similar to Object Oriented Programing JAVA presentaion (20)

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

More from Pritom Chaki (9)

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

Recently uploaded (20)

PDF
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
PPTX
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
PPT
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
PDF
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
PDF
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
PDF
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
The Asian School
 
PPT
Ppt for engineering students application on field effect
lakshmi.ec
 
PPTX
Inventory management chapter in automation and robotics.
atisht0104
 
PDF
Introduction to Data Science: data science process
ShivarkarSandip
 
PPTX
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
PDF
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
PDF
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
PDF
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
PPTX
easa module 3 funtamental electronics.pptx
tryanothert7
 
PDF
Top 10 read articles In Managing Information Technology.pdf
IJMIT JOURNAL
 
PDF
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
The Asian School
 
Ppt for engineering students application on field effect
lakshmi.ec
 
Inventory management chapter in automation and robotics.
atisht0104
 
Introduction to Data Science: data science process
ShivarkarSandip
 
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
easa module 3 funtamental electronics.pptx
tryanothert7
 
Top 10 read articles In Managing Information Technology.pdf
IJMIT JOURNAL
 
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 

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]