SlideShare a Scribd company logo
1 of 34
Objects
[object Object],[object Object],[object Object],[object Object]
Object Space $$ $$ Kad ATMku Kad ATMku
Definition of Object ,[object Object],[object Object],[object Object],[object Object],[object Object]
Object State ,[object Object],BEFORE AFTER
[object Object],Example: A  Car  object Another  Car  object Car “ WHH7801” green “ Sufian Idris” colour plateNr owner Car “ WHY9531” blue “ Ali Bakar” colour plateNr owner
[object Object],[object Object],Fridge “ 342-0967” “ Ali Bakar” biru owner serialNr colour value is fixed values can be  changed
[object Object],[object Object],The links are added to represent the fact that both cars are owned by the same person. : Car : Person : Car links
[object Object],The links are added to represent the fact that the engine and the chassis are part of the car.  This relationship is also called aggregation. : Car : Engine : Chassis links
[object Object],[object Object],: Computer datePurch processor memory 15032002 : Memory size 256 : Processor speed 900 object references
Object Behaviour ,[object Object],[object Object],jump
[object Object],fly ??
[object Object],The Scanner object responds by inputting a float value and returning that value to the TemperatureConverter object.  : Scanner : Temperature Converter nextFloat()
[object Object],: Rectangle 5 colour width height 10 green zoom_2x 10 20
[object Object],switchChannel(5) openCommChannel() switchChannel(5) closeCommChannel() Saluran Ceria Anda
Object Identity ,[object Object],Triplets… but each of them has its own identity
[object Object],class Computer { private int computerID; private Date datePurchased; private Processor processor; … } Redundant
Relationship between Object State and Object Behaviour ,[object Object],[object Object],[object Object]
[object Object],Number of tins: 20 What if there are no more tins in the machine? dispense() Koka Koola
Abstraction ,[object Object],weight length heart size chew drink run … … … there are too many! Attributes Behaviour
[object Object]
[object Object],[object Object],: Bird 5 colour weight height 10 white 14 0.5
Encapsulation ,[object Object],[object Object],[object Object]
[object Object]
[object Object],[object Object],[object Object],40 area() attributes: width height … behaviour:   area() return width * height; HIDDEN BY OBJECT
[object Object],[object Object],[object Object]
Object Interface ,[object Object],[object Object]
[object Object],[object Object]
INTERFACE area() setWidth(int width) setHeight(int height) ?? yesss! But where can we find information about an object’s interface? Rectangle object
Messages and Methods ,[object Object],[object Object],jump
[object Object],[object Object],switchChannel(5) openCommChannel() switchChannel(5) closeCommChannel() client receiver object Saluran Ceria Anda
[object Object],40 area() attributes: width height … behaviour:   area() return width * height; message method
Object Collaboration ,[object Object],“ No object is an island”
[object Object]

More Related Content

What's hot (20)

Vectors in Java
Vectors in JavaVectors in Java
Vectors in Java
 
Java Wrapper Classes and I/O Mechanisms
Java Wrapper Classes and I/O MechanismsJava Wrapper Classes and I/O Mechanisms
Java Wrapper Classes and I/O Mechanisms
 
Javascript foundations: Introducing OO
Javascript foundations: Introducing OOJavascript foundations: Introducing OO
Javascript foundations: Introducing OO
 
Structures in c++
Structures in c++Structures in c++
Structures in c++
 
Wrapper classes
Wrapper classes Wrapper classes
Wrapper classes
 
Esoteric LINQ and Structural Madness
Esoteric LINQ and Structural MadnessEsoteric LINQ and Structural Madness
Esoteric LINQ and Structural Madness
 
JAVA Data Types - Part 1
JAVA Data Types - Part 1JAVA Data Types - Part 1
JAVA Data Types - Part 1
 
Oop
OopOop
Oop
 
Introduction to odbms
Introduction to odbmsIntroduction to odbms
Introduction to odbms
 
Objects and Types C#
Objects and Types C#Objects and Types C#
Objects and Types C#
 
Visual basic intoduction
Visual basic intoductionVisual basic intoduction
Visual basic intoduction
 
Java
JavaJava
Java
 
inheritance
inheritanceinheritance
inheritance
 
Database Management Systems Tutorial
Database Management Systems TutorialDatabase Management Systems Tutorial
Database Management Systems Tutorial
 
Java unit 7
Java unit 7Java unit 7
Java unit 7
 
Object oriented modeling
Object oriented modelingObject oriented modeling
Object oriented modeling
 
Mca 504 dotnet_unit3
Mca 504 dotnet_unit3Mca 504 dotnet_unit3
Mca 504 dotnet_unit3
 
Sv data types and sv interface usage in uvm
Sv data types and sv interface usage in uvmSv data types and sv interface usage in uvm
Sv data types and sv interface usage in uvm
 
Generic Programming in java
Generic Programming in javaGeneric Programming in java
Generic Programming in java
 
Class 4
Class 4Class 4
Class 4
 

Viewers also liked

Assignment six sigma in healthcare
Assignment  six sigma in healthcareAssignment  six sigma in healthcare
Assignment six sigma in healthcaremona gado
 
Maruti udyog limited
Maruti udyog limitedMaruti udyog limited
Maruti udyog limitedpankur94
 
Kombinate - We think App! (english)
Kombinate - We think App! (english)Kombinate - We think App! (english)
Kombinate - We think App! (english)Cosmopolls GmbH
 
Conflicto armado entre gobierno y delincuencia organizada en
Conflicto armado entre gobierno y delincuencia organizada enConflicto armado entre gobierno y delincuencia organizada en
Conflicto armado entre gobierno y delincuencia organizada enBRUJOTE
 

Viewers also liked (7)

Assignment six sigma in healthcare
Assignment  six sigma in healthcareAssignment  six sigma in healthcare
Assignment six sigma in healthcare
 
Maruti udyog limited
Maruti udyog limitedMaruti udyog limited
Maruti udyog limited
 
Olivos
OlivosOlivos
Olivos
 
Kombinate - We think App! (english)
Kombinate - We think App! (english)Kombinate - We think App! (english)
Kombinate - We think App! (english)
 
Comenius
ComeniusComenius
Comenius
 
Conflicto armado entre gobierno y delincuencia organizada en
Conflicto armado entre gobierno y delincuencia organizada enConflicto armado entre gobierno y delincuencia organizada en
Conflicto armado entre gobierno y delincuencia organizada en
 
Olivos
OlivosOlivos
Olivos
 

Similar to Objects by Sufian Idris

Chapter 1- Introduction.ppt
Chapter 1- Introduction.pptChapter 1- Introduction.ppt
Chapter 1- Introduction.pptTigistTilahun1
 
Ooad notes
Ooad notesOoad notes
Ooad notesNancyJP
 
香港六合彩 » SlideShare
香港六合彩 » SlideShare香港六合彩 » SlideShare
香港六合彩 » SlideSharebiyu
 
COMP111-Week-1_138439.pptx
COMP111-Week-1_138439.pptxCOMP111-Week-1_138439.pptx
COMP111-Week-1_138439.pptxFarooqTariq8
 
Oop2011 actor presentation_stal
Oop2011 actor presentation_stalOop2011 actor presentation_stal
Oop2011 actor presentation_stalMichael Stal
 
Java is an Object-Oriented Language
Java is an Object-Oriented LanguageJava is an Object-Oriented Language
Java is an Object-Oriented Languageale8819
 
M.c.a. (sem iv)- java programming
M.c.a. (sem   iv)- java programmingM.c.a. (sem   iv)- java programming
M.c.a. (sem iv)- java programmingPraveen Chowdary
 
C++ [ principles of object oriented programming ]
C++ [ principles of object oriented programming ]C++ [ principles of object oriented programming ]
C++ [ principles of object oriented programming ]Rome468
 
Object-Oriented Concepts
Object-Oriented ConceptsObject-Oriented Concepts
Object-Oriented ConceptsAbdalla Mahmoud
 
1 intro
1 intro1 intro
1 introabha48
 
Object Oriented Software Development, using c# programming language
Object Oriented Software Development, using c# programming languageObject Oriented Software Development, using c# programming language
Object Oriented Software Development, using c# programming languageGeorges Abboudeh
 

Similar to Objects by Sufian Idris (20)

Chapter 1- Introduction.ppt
Chapter 1- Introduction.pptChapter 1- Introduction.ppt
Chapter 1- Introduction.ppt
 
Ooad notes
Ooad notesOoad notes
Ooad notes
 
Advance oops concepts
Advance oops conceptsAdvance oops concepts
Advance oops concepts
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Java chapter 3
Java   chapter 3Java   chapter 3
Java chapter 3
 
香港六合彩 » SlideShare
香港六合彩 » SlideShare香港六合彩 » SlideShare
香港六合彩 » SlideShare
 
COMP111-Week-1_138439.pptx
COMP111-Week-1_138439.pptxCOMP111-Week-1_138439.pptx
COMP111-Week-1_138439.pptx
 
Oop2011 actor presentation_stal
Oop2011 actor presentation_stalOop2011 actor presentation_stal
Oop2011 actor presentation_stal
 
IoT in salsa Serverless
IoT in salsa ServerlessIoT in salsa Serverless
IoT in salsa Serverless
 
C++
C++C++
C++
 
Ch14
Ch14Ch14
Ch14
 
MCA NOTES.pdf
MCA NOTES.pdfMCA NOTES.pdf
MCA NOTES.pdf
 
Java is an Object-Oriented Language
Java is an Object-Oriented LanguageJava is an Object-Oriented Language
Java is an Object-Oriented Language
 
java
javajava
java
 
M.c.a. (sem iv)- java programming
M.c.a. (sem   iv)- java programmingM.c.a. (sem   iv)- java programming
M.c.a. (sem iv)- java programming
 
C++ [ principles of object oriented programming ]
C++ [ principles of object oriented programming ]C++ [ principles of object oriented programming ]
C++ [ principles of object oriented programming ]
 
Object-Oriented Concepts
Object-Oriented ConceptsObject-Oriented Concepts
Object-Oriented Concepts
 
1 intro
1 intro1 intro
1 intro
 
Java pdf
Java   pdfJava   pdf
Java pdf
 
Object Oriented Software Development, using c# programming language
Object Oriented Software Development, using c# programming languageObject Oriented Software Development, using c# programming language
Object Oriented Software Development, using c# programming language
 

Recently uploaded

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 

Recently uploaded (20)

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 

Objects by Sufian Idris

  • 2.
  • 3. Object Space $$ $$ Kad ATMku Kad ATMku
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29. INTERFACE area() setWidth(int width) setHeight(int height) ?? yesss! But where can we find information about an object’s interface? Rectangle object
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.

Editor's Notes

  1. Refine
  2. Picture showing someone ordering food at a restaurant