SlideShare a Scribd company logo
1 of 25
Download to read offline
Object Oriented Programming


    Wed, 10.00-12.30 -@A.602   (Lect)
    Wed, 10.00 – 12.30 -@Puskom (Lab)


      Prof. Dr. –Ing. Kalamullah Ramli



                                         1
Objectives

Understand Object Oriented Design
Paradigm
Understand principles of and best
practice on developing and analysing
Object Oriented System Software
Capable of designing, initializing and
implementing Object Oriented System
Software

                                         2
Syllabus of Course
W                            Topics                               Date       Lect                         Task

 1Introduction to OOP                                             31-Agust KLM reading Chap 2, Chap 3, Chap 4 (Cisco-Sun)

 2Object Oriented Principles                                        07-Sep KLM reading Chap 5, Chap 6, Chap 7 (Cisco-Sun)

 3Inheritance                                                       14-Sep          reading Chap 8 (Cisco-Sun)

 4Polymorphism                                                      28-Sep KLM review reading Chap 2 to Chap 8

 5Java Packages, AWT                                                05-Okt KLM reading Chap 9, Chap 10 (Cisco-Sun)



 6Introduction to Java Networking, Applets, Graphics                12-Okt          reading Chap 11 (Cisco-Sun)
     Mid-Test                                                  19-23-Okt

 7                                                                  26-Okt KLM exercise, reading Chap 12 (Cisco-Sun)

 8 Lab Exercises: setting, initializing, implementing Object       02-Nop KLM exercise, reading Chap 13 (Cisco-Sun)
   Oriented Applications
 9                                                                 09-Nop KLM exercise, reading Chap 14 (Cisco-Sun)

10                                                                 16-Nop KLM exercise, reading Chap 15 (Cisco-Sun)

11Project Explanation                                              23-Nop KLM Developing

12Project Explanation                                              30-Nop KLM Developing

     Final-Test                                                07-21-Des




                                                                                                                            3
References
Deitel, “
Cisco & Sun, “Java Programming”, Cisco
Networking Academy




                                         4
Lecture 1

       Introduction to
Object Oriented Programming




                              5
Hardware components
Software and programming
Introduction to Java
Integrated Development Environment
(IDE
 IDE)
 IDE
Central Processing Unit (CPU)
Persistent Data Storage
◦ Hard Drive, CD, Diskette, ROM
Volatile Storage
◦ Random Access Memory (RAM)
Peripherals
◦ Mouse, Keyboard, Screen, etc
Instructions that tell the hardware
what to do
Three ways to obtain software
◦ Buy pre-written software
◦ Modify pre-existing software
◦ Write the software
Tools for the user
Usually a collection of programs
Provide a user interface
◦ Accept input
◦ React to requests
Examples: Microsoft Office, Netscape
Navigator
Program that controls the computer
hardware
Provides a consistent way for
applications to access the hardware
Many Operating Systems exist, mostly
incompatible with each other
Applications must be written
specifically for the target Operating
System
Digital CPUs require binary instructions
Early computers were programmed with
electrical switches
Very difficult to write programs
Early languages used mnemonics that
were translated to binary for the CPU
Higher-
Higher-level languages allow the
programmer to ignore the details
Early high-level languages were procedural
Programs were a list of sequential steps
Programmer had to think like the computer
Object-oriented Programming (OOP) uses
general purpose components
Components are then assembled in to an
application
Components are called ‘Objects
                        Objects’
                        Objects
Object perform specific functions
Objects interact by sending & receiving
messages
Programmer is focused on coordinating the
object interaction
Closely models human problem-solving
                       problem-
Punctuation – Symbols used
Vocabulary – The languages keywords
Identifiers – Used to reference data
Operators – Symbols representing commands
Syntax – Rules for combining the language’s
elements
Compiled – The program is translated in to
the CPU’s binary language once it is
completed
Interpreted – The individual instructions in
the program are translated immediately
before they are executed
Originally designed for consumer devices
Had to be small, simple, portable
           small simple
Ideal for use over the Internet
Java programs written as text files
Java compiler creates a program file
consisting of ‘Byte Code
               Byte Code’
The byte-code file is sent to the target
computer, which has a Java Virtual Machine
(JVM)
The JVM ‘interprets the byte-code, one
          interprets’
          interprets
instruction at a time
A Separate JVM is required for each
Operating System & CPU
Create Java Programs with a text editor or
Integrated Development Environment (IDE)
Use a compiler to create the ‘byte-code’ class
files (Such as JDK)
A Java Virtual Machine (JVM on the target
                        JVM)
                        JVM
computers
/**
* A Java Program
* @author: Student
                                                   Comments
*/
// This program will say hello               Class definition
public class sayHello {                          Data & methods
  public static void main(String args[]) {
       String name = “Student”;
       int number = 1;                      The ‘main’ method
       System.out.println(“Hello”);
       System.out.println(name);                      Punctuation
       System.out.println(“Your lucky number is “ + number);
  }
}
Chapter1
Chapter1
Chapter1

More Related Content

Viewers also liked (7)

Modul 2
Modul 2Modul 2
Modul 2
 
Modul 1
Modul 1Modul 1
Modul 1
 
Modul 3
Modul 3Modul 3
Modul 3
 
Modul 4
Modul 4Modul 4
Modul 4
 
Dasar – dasar komputer
Dasar – dasar komputerDasar – dasar komputer
Dasar – dasar komputer
 
Modul 5
Modul 5Modul 5
Modul 5
 
Modul 1
Modul 1Modul 1
Modul 1
 

Similar to Chapter1

Expressive And Modular Predicate Dispatch In Java
Expressive And Modular Predicate Dispatch In JavaExpressive And Modular Predicate Dispatch In Java
Expressive And Modular Predicate Dispatch In JavaDr Anjan Krishnamurthy
 
212 kuliah 01 pengenalan pemrograman berorientasi objek (java)
212 kuliah 01   pengenalan pemrograman berorientasi objek (java)212 kuliah 01   pengenalan pemrograman berorientasi objek (java)
212 kuliah 01 pengenalan pemrograman berorientasi objek (java)yuan99
 
iPhone development from a Java perspective (Jazoon '09)
iPhone development from a Java perspective (Jazoon '09)iPhone development from a Java perspective (Jazoon '09)
iPhone development from a Java perspective (Jazoon '09)Netcetera
 
DAWN and Scientific Workflows
DAWN and Scientific WorkflowsDAWN and Scientific Workflows
DAWN and Scientific WorkflowsMatthew Gerring
 
Lec 4 06_aug [compatibility mode]
Lec 4 06_aug [compatibility mode]Lec 4 06_aug [compatibility mode]
Lec 4 06_aug [compatibility mode]Palak Sanghani
 
Core java &collections
Core java &collectionsCore java &collections
Core java &collectionsRavi varma
 
Spark to Production @Windward
Spark to Production @WindwardSpark to Production @Windward
Spark to Production @WindwardDemi Ben-Ari
 
OOP_chapter _1.pptx
OOP_chapter _1.pptxOOP_chapter _1.pptx
OOP_chapter _1.pptxAbdexAliyi
 
Topic2JavaBasics.ppt
Topic2JavaBasics.pptTopic2JavaBasics.ppt
Topic2JavaBasics.pptMENACE4
 
hallleuah_java.ppt
hallleuah_java.ppthallleuah_java.ppt
hallleuah_java.pptRahul201258
 
The End of the world as we know it - AKA your last NullPointerException $1B b...
The End of the world as we know it - AKA your last NullPointerException $1B b...The End of the world as we know it - AKA your last NullPointerException $1B b...
The End of the world as we know it - AKA your last NullPointerException $1B b...Michael Vorburger
 
Leiningen2 - humane build management for clojure
Leiningen2 - humane build management for clojureLeiningen2 - humane build management for clojure
Leiningen2 - humane build management for clojureJohn Stevenson
 
Java Course 15: Ant, Scripting, Spring, Hibernate
Java Course 15: Ant, Scripting, Spring, HibernateJava Course 15: Ant, Scripting, Spring, Hibernate
Java Course 15: Ant, Scripting, Spring, HibernateAnton Keks
 
Java Standard edition(Java ) programming Basics for beginner's
Java Standard edition(Java ) programming Basics  for beginner'sJava Standard edition(Java ) programming Basics  for beginner's
Java Standard edition(Java ) programming Basics for beginner'smomin6
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Pratima Parida
 

Similar to Chapter1 (20)

All experiment of java
All experiment of javaAll experiment of java
All experiment of java
 
Expressive And Modular Predicate Dispatch In Java
Expressive And Modular Predicate Dispatch In JavaExpressive And Modular Predicate Dispatch In Java
Expressive And Modular Predicate Dispatch In Java
 
212 kuliah 01 pengenalan pemrograman berorientasi objek (java)
212 kuliah 01   pengenalan pemrograman berorientasi objek (java)212 kuliah 01   pengenalan pemrograman berorientasi objek (java)
212 kuliah 01 pengenalan pemrograman berorientasi objek (java)
 
iPhone development from a Java perspective (Jazoon '09)
iPhone development from a Java perspective (Jazoon '09)iPhone development from a Java perspective (Jazoon '09)
iPhone development from a Java perspective (Jazoon '09)
 
opps.pptx
opps.pptxopps.pptx
opps.pptx
 
DAWN and Scientific Workflows
DAWN and Scientific WorkflowsDAWN and Scientific Workflows
DAWN and Scientific Workflows
 
Lec 4 06_aug [compatibility mode]
Lec 4 06_aug [compatibility mode]Lec 4 06_aug [compatibility mode]
Lec 4 06_aug [compatibility mode]
 
Core java
Core java Core java
Core java
 
Core java &collections
Core java &collectionsCore java &collections
Core java &collections
 
Core java1
Core java1Core java1
Core java1
 
Spark to Production @Windward
Spark to Production @WindwardSpark to Production @Windward
Spark to Production @Windward
 
OOP_chapter _1.pptx
OOP_chapter _1.pptxOOP_chapter _1.pptx
OOP_chapter _1.pptx
 
Topic2JavaBasics.ppt
Topic2JavaBasics.pptTopic2JavaBasics.ppt
Topic2JavaBasics.ppt
 
hallleuah_java.ppt
hallleuah_java.ppthallleuah_java.ppt
hallleuah_java.ppt
 
2.ppt
2.ppt2.ppt
2.ppt
 
The End of the world as we know it - AKA your last NullPointerException $1B b...
The End of the world as we know it - AKA your last NullPointerException $1B b...The End of the world as we know it - AKA your last NullPointerException $1B b...
The End of the world as we know it - AKA your last NullPointerException $1B b...
 
Leiningen2 - humane build management for clojure
Leiningen2 - humane build management for clojureLeiningen2 - humane build management for clojure
Leiningen2 - humane build management for clojure
 
Java Course 15: Ant, Scripting, Spring, Hibernate
Java Course 15: Ant, Scripting, Spring, HibernateJava Course 15: Ant, Scripting, Spring, Hibernate
Java Course 15: Ant, Scripting, Spring, Hibernate
 
Java Standard edition(Java ) programming Basics for beginner's
Java Standard edition(Java ) programming Basics  for beginner'sJava Standard edition(Java ) programming Basics  for beginner's
Java Standard edition(Java ) programming Basics for beginner's
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
 

More from teknik komputer ui (20)

The cisco networking academy net riders indonesia 2010 competition
The cisco networking academy net riders indonesia 2010 competitionThe cisco networking academy net riders indonesia 2010 competition
The cisco networking academy net riders indonesia 2010 competition
 
Rencana Proyek Divisi Komputer.doc
Rencana Proyek Divisi Komputer.docRencana Proyek Divisi Komputer.doc
Rencana Proyek Divisi Komputer.doc
 
Salinan Research Paper
Salinan Research PaperSalinan Research Paper
Salinan Research Paper
 
Chapter_1_Case_Study
Chapter_1_Case_StudyChapter_1_Case_Study
Chapter_1_Case_Study
 
Iins practice questions
Iins practice questionsIins practice questions
Iins practice questions
 
S1 intr ftui
S1 intr ftuiS1 intr ftui
S1 intr ftui
 
Exploration network chapter7
Exploration network chapter7Exploration network chapter7
Exploration network chapter7
 
Exploration network chapter6
Exploration network chapter6Exploration network chapter6
Exploration network chapter6
 
Exploration network chapter5
Exploration network chapter5Exploration network chapter5
Exploration network chapter5
 
Exploration network chapter4
Exploration network chapter4Exploration network chapter4
Exploration network chapter4
 
Exploration network chapter3
Exploration network chapter3Exploration network chapter3
Exploration network chapter3
 
Exploration network chapter2
Exploration network chapter2Exploration network chapter2
Exploration network chapter2
 
Exploration network chapter1
Exploration network chapter1Exploration network chapter1
Exploration network chapter1
 
Exploration network chapter11
Exploration network chapter11Exploration network chapter11
Exploration network chapter11
 
Chapter3 bag2
Chapter3 bag2Chapter3 bag2
Chapter3 bag2
 
Chapter3 bag1
Chapter3 bag1Chapter3 bag1
Chapter3 bag1
 
Chapter2 bag2
Chapter2 bag2Chapter2 bag2
Chapter2 bag2
 
Chapter2 bag1
Chapter2 bag1Chapter2 bag1
Chapter2 bag1
 
Chapter4
Chapter4Chapter4
Chapter4
 
Dasar komputer chapter3
Dasar komputer chapter3Dasar komputer chapter3
Dasar komputer chapter3
 

Chapter1

  • 1. Object Oriented Programming Wed, 10.00-12.30 -@A.602 (Lect) Wed, 10.00 – 12.30 -@Puskom (Lab) Prof. Dr. –Ing. Kalamullah Ramli 1
  • 2. Objectives Understand Object Oriented Design Paradigm Understand principles of and best practice on developing and analysing Object Oriented System Software Capable of designing, initializing and implementing Object Oriented System Software 2
  • 3. Syllabus of Course W Topics Date Lect Task 1Introduction to OOP 31-Agust KLM reading Chap 2, Chap 3, Chap 4 (Cisco-Sun) 2Object Oriented Principles 07-Sep KLM reading Chap 5, Chap 6, Chap 7 (Cisco-Sun) 3Inheritance 14-Sep reading Chap 8 (Cisco-Sun) 4Polymorphism 28-Sep KLM review reading Chap 2 to Chap 8 5Java Packages, AWT 05-Okt KLM reading Chap 9, Chap 10 (Cisco-Sun) 6Introduction to Java Networking, Applets, Graphics 12-Okt reading Chap 11 (Cisco-Sun) Mid-Test 19-23-Okt 7 26-Okt KLM exercise, reading Chap 12 (Cisco-Sun) 8 Lab Exercises: setting, initializing, implementing Object 02-Nop KLM exercise, reading Chap 13 (Cisco-Sun) Oriented Applications 9 09-Nop KLM exercise, reading Chap 14 (Cisco-Sun) 10 16-Nop KLM exercise, reading Chap 15 (Cisco-Sun) 11Project Explanation 23-Nop KLM Developing 12Project Explanation 30-Nop KLM Developing Final-Test 07-21-Des 3
  • 4. References Deitel, “ Cisco & Sun, “Java Programming”, Cisco Networking Academy 4
  • 5. Lecture 1 Introduction to Object Oriented Programming 5
  • 6.
  • 7. Hardware components Software and programming Introduction to Java Integrated Development Environment (IDE IDE) IDE
  • 8. Central Processing Unit (CPU) Persistent Data Storage ◦ Hard Drive, CD, Diskette, ROM Volatile Storage ◦ Random Access Memory (RAM) Peripherals ◦ Mouse, Keyboard, Screen, etc
  • 9. Instructions that tell the hardware what to do Three ways to obtain software ◦ Buy pre-written software ◦ Modify pre-existing software ◦ Write the software
  • 10. Tools for the user Usually a collection of programs Provide a user interface ◦ Accept input ◦ React to requests Examples: Microsoft Office, Netscape Navigator
  • 11. Program that controls the computer hardware Provides a consistent way for applications to access the hardware Many Operating Systems exist, mostly incompatible with each other Applications must be written specifically for the target Operating System
  • 12. Digital CPUs require binary instructions Early computers were programmed with electrical switches Very difficult to write programs Early languages used mnemonics that were translated to binary for the CPU Higher- Higher-level languages allow the programmer to ignore the details
  • 13. Early high-level languages were procedural Programs were a list of sequential steps Programmer had to think like the computer Object-oriented Programming (OOP) uses general purpose components Components are then assembled in to an application
  • 14. Components are called ‘Objects Objects’ Objects Object perform specific functions Objects interact by sending & receiving messages Programmer is focused on coordinating the object interaction Closely models human problem-solving problem-
  • 15. Punctuation – Symbols used Vocabulary – The languages keywords Identifiers – Used to reference data Operators – Symbols representing commands Syntax – Rules for combining the language’s elements
  • 16. Compiled – The program is translated in to the CPU’s binary language once it is completed Interpreted – The individual instructions in the program are translated immediately before they are executed
  • 17. Originally designed for consumer devices Had to be small, simple, portable small simple Ideal for use over the Internet
  • 18.
  • 19. Java programs written as text files Java compiler creates a program file consisting of ‘Byte Code Byte Code’ The byte-code file is sent to the target computer, which has a Java Virtual Machine (JVM) The JVM ‘interprets the byte-code, one interprets’ interprets instruction at a time A Separate JVM is required for each Operating System & CPU
  • 20.
  • 21. Create Java Programs with a text editor or Integrated Development Environment (IDE) Use a compiler to create the ‘byte-code’ class files (Such as JDK) A Java Virtual Machine (JVM on the target JVM) JVM computers
  • 22. /** * A Java Program * @author: Student Comments */ // This program will say hello Class definition public class sayHello { Data & methods public static void main(String args[]) { String name = “Student”; int number = 1; The ‘main’ method System.out.println(“Hello”); System.out.println(name); Punctuation System.out.println(“Your lucky number is “ + number); } }