SlideShare a Scribd company logo
1 of 6
Download to read offline
FIRMAN NURDIYANSYAH – TEKNIK INFORMATIKA 1
UNIVERSITAS WIDYAGAMA MALANG
JAVA 6
CONCEPT OF OBJECT ORIENTED PROGRAMMING
(OOP)
ABSTRACT
encapsulation
INHERITANCE
polymorphisms
Definition
Object-oriented programming, or more commonly known as foreign - Object Oriented
Programming (OOP) is the core of the Java programming. All the Java program object.
Therefore, before you start writing a Java program code contained in the chapters that follow,
you should first know the basics of the concepts contained in the object-oriented programming.
Some characteristics of object-oriented programming is Abstraction, Encapsulation, Inheritance
, and polymorphisms. Discussion detail about each feature of OOP above will be studied further
in other chapters in this book, which is when we talk about class.
1. Abstract
Abstraction is the ability of a program to bypass aspects of information processed by it,
that the ability to focus on the core. Every object in the system serves as a model of the
"perpetrators" abstract that can do the work, reports and changes in circumstances, and
communicate with other objects in the system, without revealing how this excess is
applied. Processes, functions or methods can also be made abstract, and some of the
techniques used to develop an abstraction.
FIRMAN NURDIYANSYAH – TEKNIK INFORMATIKA 2
UNIVERSITAS WIDYAGAMA MALANG
Example :
2. Enkapsulation
Encapsulation is an object Ensuring users can not change the state of an object in a way
that is not feasible; The only method in the object that is given permission to access the
situation. Each object access interface that specifies how other objects can interact with
it. Other objects will not know and rely on the representation of the object.
FIRMAN NURDIYANSYAH – TEKNIK INFORMATIKA 3
UNIVERSITAS WIDYAGAMA MALANG
Example :
1. Create a Class encapsulation
2. Create a Class encapsulation1
3. Inheritance
Inheritance is a major advantage in object-oriented programming as a property or
method defined in a superclass, that behavior is automatically inherited by all
subclasses. So, you can write code only once and their method could be used by all
subclasses. Subclass only need to implement the differences between itself and its
parent.
FIRMAN NURDIYANSYAH – TEKNIK INFORMATIKA 4
UNIVERSITAS WIDYAGAMA MALANG
Example :
1. Create a Class Person
FIRMAN NURDIYANSYAH – TEKNIK INFORMATIKA 5
UNIVERSITAS WIDYAGAMA MALANG
2. Create a Class Mahasiswa
3. Polymorphism
Polymorphism is the disguise in which a shape can have more than one form. an action
that allows programmers to convey a specific message out of the object hierarchy, in
which different objects give feedback / response to the same message in accordance
with the nature of each object. Polymorphism can mean many forms, meaning that we
can override (override), a method, derived from the parent class (super class) where the
object is lowered, so it has a different behavior.
FIRMAN NURDIYANSYAH – TEKNIK INFORMATIKA 6
UNIVERSITAS WIDYAGAMA MALANG
Example
Make three Class with the name of the animal, equine, animal sound

More Related Content

Viewers also liked

Thesis presentation
Thesis presentationThesis presentation
Thesis presentationnafisarfin
 
Gustavo e gabriela
Gustavo e gabrielaGustavo e gabriela
Gustavo e gabrielaNute JPA
 
Gaming Auditorium Article
Gaming Auditorium ArticleGaming Auditorium Article
Gaming Auditorium Articleiauditman
 
Indian Aviation - Air India - Global Outlook 2009-19
Indian Aviation - Air India - Global Outlook 2009-19Indian Aviation - Air India - Global Outlook 2009-19
Indian Aviation - Air India - Global Outlook 2009-19Magdalena Anna Fas
 
Gaming Conference Presentation 2002
Gaming Conference Presentation 2002Gaming Conference Presentation 2002
Gaming Conference Presentation 2002iauditman
 
Gaming Auditorium Article
Gaming Auditorium ArticleGaming Auditorium Article
Gaming Auditorium Articleiauditman
 
Evolving for girls one welcome
Evolving for girls one welcomeEvolving for girls one welcome
Evolving for girls one welcomeygdish
 
006 newspaper chase
006 newspaper chase006 newspaper chase
006 newspaper chaseHuu Bui Phu
 
Triaxial accelerometer based fall detection method using a self-constructing ...
Triaxial accelerometer based fall detection method using a self-constructing ...Triaxial accelerometer based fall detection method using a self-constructing ...
Triaxial accelerometer based fall detection method using a self-constructing ...ecwayerode
 
Financial Reporting Fraud Flags
Financial Reporting Fraud FlagsFinancial Reporting Fraud Flags
Financial Reporting Fraud Flagsiauditman
 
A New Approach To Customer Service @ FR
A New Approach To Customer Service @ FRA New Approach To Customer Service @ FR
A New Approach To Customer Service @ FRMagdalena Anna Fas
 

Viewers also liked (19)

Thesis presentation
Thesis presentationThesis presentation
Thesis presentation
 
Gustavo e gabriela
Gustavo e gabrielaGustavo e gabriela
Gustavo e gabriela
 
hris
hrishris
hris
 
CV-KHAJA
CV-KHAJACV-KHAJA
CV-KHAJA
 
Gaming Auditorium Article
Gaming Auditorium ArticleGaming Auditorium Article
Gaming Auditorium Article
 
Pandillas.docx
Pandillas.docxPandillas.docx
Pandillas.docx
 
alianza vive
alianza vivealianza vive
alianza vive
 
Lacpp formation-cpp
Lacpp formation-cppLacpp formation-cpp
Lacpp formation-cpp
 
Pandillismo
PandillismoPandillismo
Pandillismo
 
Las bandas más peligrosas
Las bandas más peligrosas Las bandas más peligrosas
Las bandas más peligrosas
 
Indian Aviation - Air India - Global Outlook 2009-19
Indian Aviation - Air India - Global Outlook 2009-19Indian Aviation - Air India - Global Outlook 2009-19
Indian Aviation - Air India - Global Outlook 2009-19
 
Gaming Conference Presentation 2002
Gaming Conference Presentation 2002Gaming Conference Presentation 2002
Gaming Conference Presentation 2002
 
Gaming Auditorium Article
Gaming Auditorium ArticleGaming Auditorium Article
Gaming Auditorium Article
 
Evolving for girls one welcome
Evolving for girls one welcomeEvolving for girls one welcome
Evolving for girls one welcome
 
006 newspaper chase
006 newspaper chase006 newspaper chase
006 newspaper chase
 
Triaxial accelerometer based fall detection method using a self-constructing ...
Triaxial accelerometer based fall detection method using a self-constructing ...Triaxial accelerometer based fall detection method using a self-constructing ...
Triaxial accelerometer based fall detection method using a self-constructing ...
 
Financial Reporting Fraud Flags
Financial Reporting Fraud FlagsFinancial Reporting Fraud Flags
Financial Reporting Fraud Flags
 
Taller
TallerTaller
Taller
 
A New Approach To Customer Service @ FR
A New Approach To Customer Service @ FRA New Approach To Customer Service @ FR
A New Approach To Customer Service @ FR
 

Similar to 6.Materi Java Eclipse 6

Oops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in JavaOops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in JavaMadishetty Prathibha
 
Sulthan's_JAVA_Material_for_B.Sc-CS.pdf
Sulthan's_JAVA_Material_for_B.Sc-CS.pdfSulthan's_JAVA_Material_for_B.Sc-CS.pdf
Sulthan's_JAVA_Material_for_B.Sc-CS.pdfSULTHAN BASHA
 
Basics of object oriented programming
Basics of object oriented programmingBasics of object oriented programming
Basics of object oriented programmingNitin Kumar Kashyap
 
"Study of Java Access Control Mechanism”
"Study of Java Access Control Mechanism”"Study of Java Access Control Mechanism”
"Study of Java Access Control Mechanism”IOSR Journals
 
Java Interview Questions
Java Interview QuestionsJava Interview Questions
Java Interview QuestionsKuntal Bhowmick
 
Object oriented programming concept
Object oriented programming conceptObject oriented programming concept
Object oriented programming conceptPina Parmar
 
Lecture 2 cst 205-281 oop
Lecture 2   cst 205-281 oopLecture 2   cst 205-281 oop
Lecture 2 cst 205-281 oopktuonlinenotes
 
Exploring the Pillars of Object java.pdf
Exploring the Pillars of Object java.pdfExploring the Pillars of Object java.pdf
Exploring the Pillars of Object java.pdfKajal Digital
 
What is OOP_ (Object Oriented Programming) (1).pptx
What is OOP_ (Object Oriented Programming) (1).pptxWhat is OOP_ (Object Oriented Programming) (1).pptx
What is OOP_ (Object Oriented Programming) (1).pptxhreempandya
 
Lecture_1___Introduction_to_OOP.pdf.pdf
Lecture_1___Introduction_to_OOP.pdf.pdfLecture_1___Introduction_to_OOP.pdf.pdf
Lecture_1___Introduction_to_OOP.pdf.pdfAngelaClarito1
 
software engineer interview questions.pdf
software engineer interview questions.pdfsoftware engineer interview questions.pdf
software engineer interview questions.pdfRaajpootQueen
 

Similar to 6.Materi Java Eclipse 6 (20)

Oops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in JavaOops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in Java
 
Introduction of OOPs
Introduction of OOPsIntroduction of OOPs
Introduction of OOPs
 
Sulthan's_JAVA_Material_for_B.Sc-CS.pdf
Sulthan's_JAVA_Material_for_B.Sc-CS.pdfSulthan's_JAVA_Material_for_B.Sc-CS.pdf
Sulthan's_JAVA_Material_for_B.Sc-CS.pdf
 
INTRODUCTION TO JAVA
INTRODUCTION TO JAVAINTRODUCTION TO JAVA
INTRODUCTION TO JAVA
 
Basics of object oriented programming
Basics of object oriented programmingBasics of object oriented programming
Basics of object oriented programming
 
"Study of Java Access Control Mechanism”
"Study of Java Access Control Mechanism”"Study of Java Access Control Mechanism”
"Study of Java Access Control Mechanism”
 
Cs8392 oops 5 units notes
Cs8392 oops 5 units notes Cs8392 oops 5 units notes
Cs8392 oops 5 units notes
 
MCA NOTES.pdf
MCA NOTES.pdfMCA NOTES.pdf
MCA NOTES.pdf
 
OBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptx
OBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptxOBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptx
OBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptx
 
Java Interview Questions
Java Interview QuestionsJava Interview Questions
Java Interview Questions
 
OOP
OOPOOP
OOP
 
Object oriented programming concept
Object oriented programming conceptObject oriented programming concept
Object oriented programming concept
 
Chapter 1.pptx
Chapter 1.pptxChapter 1.pptx
Chapter 1.pptx
 
General OOP Concepts
General OOP ConceptsGeneral OOP Concepts
General OOP Concepts
 
Lecture 2 cst 205-281 oop
Lecture 2   cst 205-281 oopLecture 2   cst 205-281 oop
Lecture 2 cst 205-281 oop
 
Exploring the Pillars of Object java.pdf
Exploring the Pillars of Object java.pdfExploring the Pillars of Object java.pdf
Exploring the Pillars of Object java.pdf
 
What is OOP_ (Object Oriented Programming) (1).pptx
What is OOP_ (Object Oriented Programming) (1).pptxWhat is OOP_ (Object Oriented Programming) (1).pptx
What is OOP_ (Object Oriented Programming) (1).pptx
 
Lecture_1___Introduction_to_OOP.pdf.pdf
Lecture_1___Introduction_to_OOP.pdf.pdfLecture_1___Introduction_to_OOP.pdf.pdf
Lecture_1___Introduction_to_OOP.pdf.pdf
 
software engineer interview questions.pdf
software engineer interview questions.pdfsoftware engineer interview questions.pdf
software engineer interview questions.pdf
 
java - oop's in depth journey
java - oop's in depth journeyjava - oop's in depth journey
java - oop's in depth journey
 

More from Ismail Akbar

001. konfigurasi dasar debian server
001. konfigurasi dasar debian server001. konfigurasi dasar debian server
001. konfigurasi dasar debian serverIsmail Akbar
 
3. Materi Sistem Basis Data 3 dengan MySQL
3. Materi Sistem Basis Data 3 dengan MySQL3. Materi Sistem Basis Data 3 dengan MySQL
3. Materi Sistem Basis Data 3 dengan MySQLIsmail Akbar
 
1. Materi Sistem Basis Data (Normalisasi)
1. Materi Sistem Basis Data (Normalisasi)1. Materi Sistem Basis Data (Normalisasi)
1. Materi Sistem Basis Data (Normalisasi)Ismail Akbar
 
5. Materi Java Eclipse 5
5. Materi Java Eclipse 55. Materi Java Eclipse 5
5. Materi Java Eclipse 5Ismail Akbar
 
4. Materi Java Eclipse 4
4. Materi Java Eclipse 44. Materi Java Eclipse 4
4. Materi Java Eclipse 4Ismail Akbar
 
3. Materi Java Eclipse 3
3. Materi Java Eclipse 33. Materi Java Eclipse 3
3. Materi Java Eclipse 3Ismail Akbar
 
2. Materi Java Eclipse 2
2. Materi Java Eclipse 22. Materi Java Eclipse 2
2. Materi Java Eclipse 2Ismail Akbar
 
1. Materi Java Eclipse1
1. Materi Java Eclipse11. Materi Java Eclipse1
1. Materi Java Eclipse1Ismail Akbar
 

More from Ismail Akbar (9)

Soal Pre Test PAS
Soal Pre Test PASSoal Pre Test PAS
Soal Pre Test PAS
 
001. konfigurasi dasar debian server
001. konfigurasi dasar debian server001. konfigurasi dasar debian server
001. konfigurasi dasar debian server
 
3. Materi Sistem Basis Data 3 dengan MySQL
3. Materi Sistem Basis Data 3 dengan MySQL3. Materi Sistem Basis Data 3 dengan MySQL
3. Materi Sistem Basis Data 3 dengan MySQL
 
1. Materi Sistem Basis Data (Normalisasi)
1. Materi Sistem Basis Data (Normalisasi)1. Materi Sistem Basis Data (Normalisasi)
1. Materi Sistem Basis Data (Normalisasi)
 
5. Materi Java Eclipse 5
5. Materi Java Eclipse 55. Materi Java Eclipse 5
5. Materi Java Eclipse 5
 
4. Materi Java Eclipse 4
4. Materi Java Eclipse 44. Materi Java Eclipse 4
4. Materi Java Eclipse 4
 
3. Materi Java Eclipse 3
3. Materi Java Eclipse 33. Materi Java Eclipse 3
3. Materi Java Eclipse 3
 
2. Materi Java Eclipse 2
2. Materi Java Eclipse 22. Materi Java Eclipse 2
2. Materi Java Eclipse 2
 
1. Materi Java Eclipse1
1. Materi Java Eclipse11. Materi Java Eclipse1
1. Materi Java Eclipse1
 

Recently uploaded

Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 

Recently uploaded (20)

Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 

6.Materi Java Eclipse 6

  • 1. FIRMAN NURDIYANSYAH – TEKNIK INFORMATIKA 1 UNIVERSITAS WIDYAGAMA MALANG JAVA 6 CONCEPT OF OBJECT ORIENTED PROGRAMMING (OOP) ABSTRACT encapsulation INHERITANCE polymorphisms Definition Object-oriented programming, or more commonly known as foreign - Object Oriented Programming (OOP) is the core of the Java programming. All the Java program object. Therefore, before you start writing a Java program code contained in the chapters that follow, you should first know the basics of the concepts contained in the object-oriented programming. Some characteristics of object-oriented programming is Abstraction, Encapsulation, Inheritance , and polymorphisms. Discussion detail about each feature of OOP above will be studied further in other chapters in this book, which is when we talk about class. 1. Abstract Abstraction is the ability of a program to bypass aspects of information processed by it, that the ability to focus on the core. Every object in the system serves as a model of the "perpetrators" abstract that can do the work, reports and changes in circumstances, and communicate with other objects in the system, without revealing how this excess is applied. Processes, functions or methods can also be made abstract, and some of the techniques used to develop an abstraction.
  • 2. FIRMAN NURDIYANSYAH – TEKNIK INFORMATIKA 2 UNIVERSITAS WIDYAGAMA MALANG Example : 2. Enkapsulation Encapsulation is an object Ensuring users can not change the state of an object in a way that is not feasible; The only method in the object that is given permission to access the situation. Each object access interface that specifies how other objects can interact with it. Other objects will not know and rely on the representation of the object.
  • 3. FIRMAN NURDIYANSYAH – TEKNIK INFORMATIKA 3 UNIVERSITAS WIDYAGAMA MALANG Example : 1. Create a Class encapsulation 2. Create a Class encapsulation1 3. Inheritance Inheritance is a major advantage in object-oriented programming as a property or method defined in a superclass, that behavior is automatically inherited by all subclasses. So, you can write code only once and their method could be used by all subclasses. Subclass only need to implement the differences between itself and its parent.
  • 4. FIRMAN NURDIYANSYAH – TEKNIK INFORMATIKA 4 UNIVERSITAS WIDYAGAMA MALANG Example : 1. Create a Class Person
  • 5. FIRMAN NURDIYANSYAH – TEKNIK INFORMATIKA 5 UNIVERSITAS WIDYAGAMA MALANG 2. Create a Class Mahasiswa 3. Polymorphism Polymorphism is the disguise in which a shape can have more than one form. an action that allows programmers to convey a specific message out of the object hierarchy, in which different objects give feedback / response to the same message in accordance with the nature of each object. Polymorphism can mean many forms, meaning that we can override (override), a method, derived from the parent class (super class) where the object is lowered, so it has a different behavior.
  • 6. FIRMAN NURDIYANSYAH – TEKNIK INFORMATIKA 6 UNIVERSITAS WIDYAGAMA MALANG Example Make three Class with the name of the animal, equine, animal sound