Unformatted text preview: size of the cropped portion. (c) define the appropriate get and set methods for each instance variable. For the Item class, create instance methods: (a) “subtotal” that calculates the subtotal for an item. (b) “display” that displays the information on an item. For the Order class, create instance methods: (a) “total” that calculates the total for the item and shipping. (b) “display” that displays the relevant information (HINT: use the “display” method in the Item class.) In a separate Demonstrate class, show off what every method and every constructor in your code. This homework presents one of many ways to organize the information in a one-item order for Patronas Posters. Please suggest another way to organize the information. Use the class diagrams introduced in your lectures to describe your proposal. E.C. 12 Sep 2003...
View Full Document
- Fall '03
- Object-Oriented Programming, Subroutine, item class, Daniel J. Epstein, Department of Industrial and Systems Engineering ISE, Elaine Chew