lecture2-2

lecture2-2 - ISE 582: Information Technology for Industrial...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
ISE 582: Information Technology for Industrial Engineering Instructor: Elaine Chew University of Southern California Department of Industrial and Systems Engineering Lecture 2-2 First cup of JAVA Winston & Narasimhan: Chapt 1-5 (pp 1-33)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 September 2003 ISE 582: Web Technology for IE 2 The Agenda for Today HTML Forms Introduction to Objects Programming in General Getting Started in JAVA
Background image of page 2
4 September 2003 ISE 582: Web Technology for IE 3 Introduction to Objects Object Instance Attributes (properties): associated data Operations: actions that change attributes Methods in JAVA Member functions in C++ Object Class Category or set of objects Share same attributes, operations and relationships to other objects
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 September 2003 ISE 582: Web Technology for IE 4 Example: Object Class WIZARD name age house claimToFame changeName(…) incrementAge() calculateDOB() Class name Attributes Operations
Background image of page 4
4 September 2003 ISE 582: Web Technology for IE 5 Example: Object Instances w1: Wizard name = “Albus Dumbledore” age = 161 house = “Gryffindor” claimToFame = “Defeated dark wizard Grindelwald” w2: Wizard name = “Harry Potter” age = 21 house = “Gryffindor” claimToFame = “Survived deadly curse by Voldemort”
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 September 2003 ISE 582: Web Technology for IE 6 Objects and older constructs Operation/ Method = function/procedure Object Instance = FAT variable containing multiple pieces of data and its own functions
Background image of page 6
4 September 2003 ISE 582: Web Technology for IE 7 Convention: Attributes/operation names begin with lower-case characters Class and type names are capitalized Common Operations: get*, set*, is* Naming Conventions Class name attributes:Type operations Class name
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 September 2003 ISE 582: Web Technology for IE 8 Programming in General Algorithms Pseudocode Reusable Components Testing and Debugging
Background image of page 8
ISE 582: Web Technology for IE 9 Algorithms and Pseudocode Hardest part in designing methods: coming up with a plan or strategy for carrying out the action Algorithm : set of instructions for solving a problem. So precise that even a dumb computer could follow the instructions and get the same results Pseudocode : an algorithm written in a mixture of English and some programming language
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 29

lecture2-2 - ISE 582: Information Technology for Industrial...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online