This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Item -itemId:int -name:String -quantity:int +Item(id:int,name:String,qua ntity:int) +setName(name:String):void +getName():String +setitemId(id:int):void +getitemId():int +getQuantity():int +setQuantity(val:int):void +displayItemInfo():void King Saud University College of Computer and Information Systems Department of Computer Science CSC 113: Java Programming-II, Spring2011 Tutorial 3: Relationship between Classes Page | 2 Date: Saturday, March 05, 2011 For Adding Item , Enter 1 To View the Order, Enter 2 To Exit, Enter 0 Enter Your Option:____ Option 1: Entering Option 1 will display following output. Output is given with sample data. Enter Item Id: 101 Enter Item Name: pepsi Enter Quantity: 10 Option 2: Entering Option 3 will display information about all items in the order. Option 0: Entering 0 will terminate the program by displaying “Have a Nice Day”....
View Full Document
This note was uploaded on 08/18/2011 for the course COMPUTER S CSC 113 taught by Professor Dr.safwanqasem during the Spring '11 term at King Saud University.
- Spring '11
- Java Programming