{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Sol-Assignment14 - Food#customerName String#foodName...

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

View Full Document Right Arrow Icon
Solution Dung Nguyen Assignment: 14 Due Date: December 04, 2009 Class Relationship Diagram:
Background image of page 1

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

View Full Document Right Arrow Icon
Class Diagrams: Driver <<Main method>> + main(args : String[]) FoodCourt - restaurants : Restaurant[] <<Constructor>> +FoodCourt() +FoodCourt(restaurants : Restaurant []) <<operating methods>> +operate() +printOptions () Restaurant #name : String #restaurantName : String <<Constructor>> +Restaurant() + Restaurant (restaurantName : String) <<Get/Set Methods>> +getCustomerName() : String +setCustomerName(name : String) +getName() : String +setName(restaurantName : String) <<Operating methods>> +prepareMeal() : Food +compareTo(restaurant : Restaurant) : int Cheeburger <<Constructor>> + Cheeburger () + Cheeburger (restaurantName : String) <<operating methods>> + prepareMeal () : Burger
Background image of page 2