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
Java(Polymorphism)
PPTX
Inheritance in java
PPTX
Advance Java Topics (J2EE)
PPT
Introduction to method overloading & method overriding in java hdm
PPTX
Super keyword in java
PPTX
Interface in java
PPTX
OOP Introduction with java programming language
PPTX
oops concept in java | object oriented programming in java
Java(Polymorphism)
Inheritance in java
Advance Java Topics (J2EE)
Introduction to method overloading & method overriding in java hdm
Super keyword in java
Interface in java
OOP Introduction with java programming language
oops concept in java | object oriented programming in java

What's hot (20)

PPTX
Method overloading
PPTX
Inheritance in java
PPT
Java interfaces
PPT
Servlet life cycle
PDF
Class and Objects in Java
PPTX
Java Data Types
PPTX
Constructor in java
PPTX
Access specifiers(modifiers) in java
ODP
OOP java
PPTX
Java abstract class & abstract methods
PDF
Polymorphism in oop
PPTX
Operators in java
PPTX
Inner classes in java
PPTX
Type casting in java
PPTX
PPTX
Object Oriented Programming
PPT
Abstract class
PPS
String and string buffer
PPTX
Abstract Class Presentation
PDF
Inheritance In Java
Method overloading
Inheritance in java
Java interfaces
Servlet life cycle
Class and Objects in Java
Java Data Types
Constructor in java
Access specifiers(modifiers) in java
OOP java
Java abstract class & abstract methods
Polymorphism in oop
Operators in java
Inner classes in java
Type casting in java
Object Oriented Programming
Abstract class
String and string buffer
Abstract Class Presentation
Inheritance In Java
Ad

Viewers also liked (6)

PPS
Java Exception handling
PPTX
Exceptional Handling in Java
PPT
Handling Exceptions In C & C++[Part A]
PPT
Exception Handling
PPT
String Handling
PPTX
Exception handling
Java Exception handling
Exceptional Handling in Java
Handling Exceptions In C & C++[Part A]
Exception Handling
String Handling
Exception handling
Ad

Similar to Object Oriented Programing JAVA presentaion (20)

PDF
Object oriented programming
PPT
Unit 1 Java
PPTX
Object Oriented Programming - Polymorphism and Interfaces
DOCX
Java Interview Questions For Freshers
PPTX
Introduction to oop
PPTX
Fundamentals of oops in .Net
PPTX
C# interview
PDF
JAVA-PPT'S.pdf
DOCX
OOPS ABAP.docx
PPT
SAP ABAP Latest Interview Questions with Answers by Garuda Trainings
DOCX
Java interview questions
PPTX
Nitish Chaulagai Java1.pptx
PPTX
OOP interview questions & answers.
PDF
Review oop and ood
PDF
Java Interview Questions
PDF
CS8392-OOPS-Printed-Notes-All-Units.pdf for students
DOCX
Master of Computer Application (MCA) – Semester 4 MC0078
PPTX
Object Oriented Principles
PPTX
Abstraction encapsulation inheritance polymorphism
PDF
Core_Java_Interview.pdf
Object oriented programming
Unit 1 Java
Object Oriented Programming - Polymorphism and Interfaces
Java Interview Questions For Freshers
Introduction to oop
Fundamentals of oops in .Net
C# interview
JAVA-PPT'S.pdf
OOPS ABAP.docx
SAP ABAP Latest Interview Questions with Answers by Garuda Trainings
Java interview questions
Nitish Chaulagai Java1.pptx
OOP interview questions & answers.
Review oop and ood
Java Interview Questions
CS8392-OOPS-Printed-Notes-All-Units.pdf for students
Master of Computer Application (MCA) – Semester 4 MC0078
Object Oriented Principles
Abstraction encapsulation inheritance polymorphism
Core_Java_Interview.pdf

More from Pritom Chaki (9)

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

Recently uploaded (20)

PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
composite construction of structures.pdf
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
UNIT 4 Total Quality Management .pptx
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
Well-logging-methods_new................
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
Welding lecture in detail for understanding
PPTX
OOP with Java - Java Introduction (Basics)
Model Code of Practice - Construction Work - 21102022 .pdf
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
CYBER-CRIMES AND SECURITY A guide to understanding
composite construction of structures.pdf
Lecture Notes Electrical Wiring System Components
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
UNIT 4 Total Quality Management .pptx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
Well-logging-methods_new................
Lesson 3_Tessellation.pptx finite Mathematics
additive manufacturing of ss316l using mig welding
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Strings in CPP - Strings in C++ are sequences of characters used to store and...
Welding lecture in detail for understanding
OOP with Java - Java Introduction (Basics)

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 pritom.cse.diu@gamil.com