SlideShare a Scribd company logo
4
Most read
7
Most read
17
Most read
Java Object Oriented



                M Iqbal Al Ghazaly

This beginner Java tutorial describes fundamentals of
 programming in the Java programming language.
OOP
Object Oriented Programming (OOP) is a programming method that
  based from object. Small think from OOP is an object collection that
  interact with each other and excange an information




Inheritance
Polymorphism
Abstraction
Encapsulation
Inheritance


A class that is derived from another class is
called a subclass . The class from which the
 subclass is derived is called a superclass .
Inheritance illustration
Polymorphism


 The word "polymorphism" means "many
 forms". It comes from Greek word "poly"
(means many) and "morphos" (means form).
Polymorphism illustration
Abstraction

Abstraction is a very important element of object oriented
software development and is used in the design phase to
find a suitable hierarchy for a set of classes.
Abstraction refers to the ability to make a class abstract in
OOP. An abstract class is one that cannot be instantiated.
All other functionality of the class still exists, and its
fields, methods, and constructors are all accessed in the
same manner. You just cannot create an instance of the
abstract class.
Encapsulation
Encapsulation is one of the four fundamental OOP concepts.
  The other three are inheritance, polymorphism, and
  abstraction.
Synonym: information hiding
Encapsulation is one of the most important characteristics of
  an object oriented system.
Repetition Control Structures
Decision control structures are Java statements that
 allows us to select and execute specific blocks of
        code while skipping other sections.


                   If statement
                 Switch statement
           Repetition Control Structures
If statement
The if-statement specifies that a statement (or block of
 code) will be executed if and only if a certain
 boolean statement is true.
Devided by 3,they are:


If-else
If-else-if
If-else-else-if
Switch statement


Another way to indicate a branch is through the
  switch keyword. The switch construct allows
        branching on multiple outcomes.
switch( switch_expression ){
case case_selector1:
statement1;
statement2;


break;
case case_selector2:
statement1;
statement2;
break; default: statement1;statement2;
break;


}
Repetition Control Structures
Repetition control structures are Java statements that
 allows us to execute specific blocks of code a
 number of times. There are three types of repetition
 control structures, the while, do-while and for loops.
While loop

    The while loop is a statement or block of statements
        that is repeated as long as some condition is
                           satisfied.

while( boolean_expression ){
statement1;
statement2;
...
}
do- while
The do-while loop is similar to the while-loop. The
 statements inside a do-while loop are executed
 several times as long as the condition is satisfied.

do{
statement1;
statement2;
...
}while( boolean_expression );
For-loop
The for loop, like the previous loops, allows execution
 of the same code a number of times.



for (InitializationExpression; LoopCondition; StepExpression){
statement1;
statement2;
...
}
Arithmetic in java

Arithmetic has a job such as mathematics, it uses for
    doing mathematic's operation, such as pluses,
            division, minuses, and times

More Related Content

What's hot (20)

PPTX
Inheritance in java
RahulAnanda1
 
PPTX
oops concept in java | object oriented programming in java
CPD INDIA
 
PPT
Method overriding
Azaz Maverick
 
PPTX
Arrays in Java
Abhilash Nair
 
PPTX
Method overloading
Lovely Professional University
 
PPTX
class and objects
Payel Guria
 
PDF
Arrays in Java
Naz Abdalla
 
PDF
Generics
Ravi_Kant_Sahu
 
PPS
Wrapper class
kamal kotecha
 
PPTX
Static Members-Java.pptx
ADDAGIRIVENKATARAVIC
 
PDF
Java I/o streams
Hamid Ghorbani
 
PPTX
Inner classes in java
PhD Research Scholar
 
PPT
Abstract class in java
Lovely Professional University
 
PPTX
OOPS Basics With Example
Thooyavan Venkatachalam
 
PPTX
Interface in java
PhD Research Scholar
 
PPTX
Java abstract class & abstract methods
Shubham Dwivedi
 
PPTX
Inheritance in c++
Vineeta Garg
 
PPTX
Type casting in java
Farooq Baloch
 
PPT
Introduction to method overloading & method overriding in java hdm
Harshal Misalkar
 
PDF
Java - File Input Output Concepts
Victer Paul
 
Inheritance in java
RahulAnanda1
 
oops concept in java | object oriented programming in java
CPD INDIA
 
Method overriding
Azaz Maverick
 
Arrays in Java
Abhilash Nair
 
Method overloading
Lovely Professional University
 
class and objects
Payel Guria
 
Arrays in Java
Naz Abdalla
 
Generics
Ravi_Kant_Sahu
 
Wrapper class
kamal kotecha
 
Static Members-Java.pptx
ADDAGIRIVENKATARAVIC
 
Java I/o streams
Hamid Ghorbani
 
Inner classes in java
PhD Research Scholar
 
Abstract class in java
Lovely Professional University
 
OOPS Basics With Example
Thooyavan Venkatachalam
 
Interface in java
PhD Research Scholar
 
Java abstract class & abstract methods
Shubham Dwivedi
 
Inheritance in c++
Vineeta Garg
 
Type casting in java
Farooq Baloch
 
Introduction to method overloading & method overriding in java hdm
Harshal Misalkar
 
Java - File Input Output Concepts
Victer Paul
 

Viewers also liked (20)

PPT
Object Oriented Programming with Java
backdoor
 
PPT
Object Oriented Programming Concepts
thinkphp
 
PPT
Oops ppt
abhayjuneja
 
PPT
Basic concepts of object oriented programming
Sachin Sharma
 
PPT
Object oriented programming (oop) cs304 power point slides lecture 01
Adil Kakakhel
 
PPTX
Introduction to Object Oriented Programming
Moutaz Haddara
 
PPT
Object-oriented concepts
BG Java EE Course
 
PPT
Java tutorial PPT
Intelligo Technologies
 
PPTX
Introduction to java
Veerabadra Badra
 
KEY
Practical OOP In Java
wiradikusuma
 
PPT
Java OOP s concepts and buzzwords
Raja Sekhar
 
PPTX
Presentation on Core java
mahir jain
 
PDF
JAVA Object Oriented Programming (OOP)
Prof. Erwin Globio
 
PDF
Java OOP Programming language (Part 3) - Class and Object
OUM SAOKOSAL
 
PPTX
Programação Orientada a Objetos com Java
Álvaro Farias Pinheiro
 
PPT
Java Tutorial
Vijay A Raj
 
PDF
PHP Database Connections to MYSQL
ayman diab
 
PDF
Dijkstra
David Wood
 
PPTX
Oops concepts
Kanan Gandhi
 
PPS
NetBeans Tut CH1
Omar Mohammed
 
Object Oriented Programming with Java
backdoor
 
Object Oriented Programming Concepts
thinkphp
 
Oops ppt
abhayjuneja
 
Basic concepts of object oriented programming
Sachin Sharma
 
Object oriented programming (oop) cs304 power point slides lecture 01
Adil Kakakhel
 
Introduction to Object Oriented Programming
Moutaz Haddara
 
Object-oriented concepts
BG Java EE Course
 
Java tutorial PPT
Intelligo Technologies
 
Introduction to java
Veerabadra Badra
 
Practical OOP In Java
wiradikusuma
 
Java OOP s concepts and buzzwords
Raja Sekhar
 
Presentation on Core java
mahir jain
 
JAVA Object Oriented Programming (OOP)
Prof. Erwin Globio
 
Java OOP Programming language (Part 3) - Class and Object
OUM SAOKOSAL
 
Programação Orientada a Objetos com Java
Álvaro Farias Pinheiro
 
Java Tutorial
Vijay A Raj
 
PHP Database Connections to MYSQL
ayman diab
 
Dijkstra
David Wood
 
Oops concepts
Kanan Gandhi
 
NetBeans Tut CH1
Omar Mohammed
 
Ad

Similar to OOP java (20)

PPTX
Introduction to oop and java fundamentals
AnsgarMary
 
PDF
Object-Oriented Programming in Java.pdf
Bharath Choudhary
 
PPTX
Module--fundamentals and operators in java1.pptx
Radhika Venkatesh
 
PPT
Javatut1
desaigeeta
 
PPT
Java tut1 Coderdojo Cahersiveen
Graham Royce
 
PPT
Java tut1
Sumit Tambe
 
PPT
Java tut1
Sumit Tambe
 
PPT
Java_Tutorial_Introduction_to_Core_java.ppt
Govind Samleti
 
PPT
Java Tutorial
ArnaldoCanelas
 
PPT
Java teaching ppt for the freshers in colleeg.ppt
vvsofttechsolution
 
PPT
Java Tutorial | My Heart
Bui Kiet
 
PPSX
Java Tutorial
Akash Pandey
 
PPTX
Android webinar class_java_review
Edureka!
 
DOCX
OOP Lab-manual btech in cse kerala technological university
seenamt1234
 
ODP
Synapseindia reviews.odp.
Tarunsingh198
 
PPTX
INDUMATHY- UNIT 1 cs3391 oops introduction to oop and java.pptx
Indu65
 
PPTX
Journey-into-the-World-of-Java.pp3dqe23R3qtx
jaynanad14
 
PPTX
Introduction to Java Programming beginners.pptx
johnjabezsec
 
Introduction to oop and java fundamentals
AnsgarMary
 
Object-Oriented Programming in Java.pdf
Bharath Choudhary
 
Module--fundamentals and operators in java1.pptx
Radhika Venkatesh
 
Javatut1
desaigeeta
 
Java tut1 Coderdojo Cahersiveen
Graham Royce
 
Java tut1
Sumit Tambe
 
Java tut1
Sumit Tambe
 
Java_Tutorial_Introduction_to_Core_java.ppt
Govind Samleti
 
Java Tutorial
ArnaldoCanelas
 
Java teaching ppt for the freshers in colleeg.ppt
vvsofttechsolution
 
Java Tutorial | My Heart
Bui Kiet
 
Java Tutorial
Akash Pandey
 
Android webinar class_java_review
Edureka!
 
OOP Lab-manual btech in cse kerala technological university
seenamt1234
 
Synapseindia reviews.odp.
Tarunsingh198
 
INDUMATHY- UNIT 1 cs3391 oops introduction to oop and java.pptx
Indu65
 
Journey-into-the-World-of-Java.pp3dqe23R3qtx
jaynanad14
 
Introduction to Java Programming beginners.pptx
johnjabezsec
 
Ad

Recently uploaded (20)

PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PDF
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PPTX
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PDF
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 

OOP java

  • 1. Java Object Oriented M Iqbal Al Ghazaly This beginner Java tutorial describes fundamentals of programming in the Java programming language.
  • 2. OOP Object Oriented Programming (OOP) is a programming method that based from object. Small think from OOP is an object collection that interact with each other and excange an information Inheritance Polymorphism Abstraction Encapsulation
  • 3. Inheritance A class that is derived from another class is called a subclass . The class from which the subclass is derived is called a superclass .
  • 5. Polymorphism The word "polymorphism" means "many forms". It comes from Greek word "poly" (means many) and "morphos" (means form).
  • 7. Abstraction Abstraction is a very important element of object oriented software development and is used in the design phase to find a suitable hierarchy for a set of classes. Abstraction refers to the ability to make a class abstract in OOP. An abstract class is one that cannot be instantiated. All other functionality of the class still exists, and its fields, methods, and constructors are all accessed in the same manner. You just cannot create an instance of the abstract class.
  • 8. Encapsulation Encapsulation is one of the four fundamental OOP concepts. The other three are inheritance, polymorphism, and abstraction. Synonym: information hiding Encapsulation is one of the most important characteristics of an object oriented system.
  • 9. Repetition Control Structures Decision control structures are Java statements that allows us to select and execute specific blocks of code while skipping other sections. If statement Switch statement Repetition Control Structures
  • 10. If statement The if-statement specifies that a statement (or block of code) will be executed if and only if a certain boolean statement is true. Devided by 3,they are: If-else If-else-if If-else-else-if
  • 11. Switch statement Another way to indicate a branch is through the switch keyword. The switch construct allows branching on multiple outcomes.
  • 12. switch( switch_expression ){ case case_selector1: statement1; statement2; break; case case_selector2: statement1; statement2; break; default: statement1;statement2; break; }
  • 13. Repetition Control Structures Repetition control structures are Java statements that allows us to execute specific blocks of code a number of times. There are three types of repetition control structures, the while, do-while and for loops.
  • 14. While loop The while loop is a statement or block of statements that is repeated as long as some condition is satisfied. while( boolean_expression ){ statement1; statement2; ... }
  • 15. do- while The do-while loop is similar to the while-loop. The statements inside a do-while loop are executed several times as long as the condition is satisfied. do{ statement1; statement2; ... }while( boolean_expression );
  • 16. For-loop The for loop, like the previous loops, allows execution of the same code a number of times. for (InitializationExpression; LoopCondition; StepExpression){ statement1; statement2; ... }
  • 17. Arithmetic in java Arithmetic has a job such as mathematics, it uses for doing mathematic's operation, such as pluses, division, minuses, and times