lecture4

lecture4 - Web Technology for Industrial Engineering 18...

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

View Full Document Right Arrow Icon
Web Technology for Industrial Engineering 18 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 4 Third cup of JAVA 18 Sep 2003 Web Technology for IE 2 JAVA Cup 3 • Inheritance: classes • Privatization: private and protected • Constructors calling constructors • Methods calling methods • Designing classes and class hierarchies • Abstract classes and methods • Interfaces: requirements, documentation 18 Sep 2003 Web Technology for IE 3 Inheritance: Classes • OOP languages have classes, instances and inheritance • Keyword to specify superclass: extends ACCOUNT GRINGOTTS Direct superclass Direct subclass extends
Background image of page 1

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

View Full DocumentRight Arrow Icon
Web Technology for Industrial Engineering 18 September 2003 http://www-classes.usc.edu/engr/ise/582 2 18 Sep 2003 Web Technology for IE 4 Example • Define a superclass BANKACCOUNT • Define GRINGOTTS a subclass – With subclasses VAULT, TTM • Define MUGGLEBANK another subclass – With subclasses SAVINGS, ATM • Draw a class-hierarchy diagram 18 Sep 2003 Web Technology for IE 5 Inheritance: Instances • Instances exhibit – Instance variables of their class – Public instance variables in superclasses • Instances serve as targets for – Instance methods in their class – Public instance methods in superclasses 18 Sep 2003 Web Technology for IE 6 Design criteria • Locate instance variables and public instance methods so that
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/01/2009 for the course ISE 582 taught by Professor Chew during the Fall '03 term at USC.

Page1 / 7

lecture4 - Web Technology for Industrial Engineering 18...

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

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