lecture2-2

lecture2-2 - ISE 582: Web Technology for IE 4 September...

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

View Full Document Right Arrow Icon
ISE 582: Web Technology for IE 4 September 2003 http://www-classes.usc.edu/engr/ise/582 1 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 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 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 1

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

View Full DocumentRight Arrow Icon
ISE 582: Web Technology for IE 4 September 2003 http://www-classes.usc.edu/engr/ise/582 2 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 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” 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 2
4 September 2003 http://www-classes.usc.edu/engr/ise/582 3 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 4 September 2003 ISE 582: Web Technology for IE 8 Programming in General • Algorithms • Pseudocode • Reusable Components • Testing and Debugging 4 September 2003 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
Background image of page 3

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

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

Page1 / 10

lecture2-2 - ISE 582: Web Technology for IE 4 September...

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

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