Sol-Assignment12 - +setEmail(email : String) Room - number...

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

View Full Document Right Arrow Icon
Solution Dung Nguyen Assignment: 12 Due Date: November 18, 2009 Some relationships in Reitz Union
Background image of page 1

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

View Full DocumentRight Arrow Icon
Some classes: Person -name : String - address : String - email : String <<Constructors>> +Person(name : String, address : String, email : String) +Person(name : String) <<Get/Set methods>> +getName() : String +setName(name : String) +getAddress() : String +setAddress(address : String) +getEmail() :String
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: +setEmail(email : String) Room - number : int - price : int; - people : ArrayList&lt;Customer&gt; &lt;&lt;Constructor&gt;&gt; +Room(number : int, price : int) &lt;&lt;Get/Set method&gt;&gt; +getNumber() : int +setNumber(number : int) +getPrice() :int +setPrice(price : int) &lt;&lt;Rent methods&gt;&gt; +checkIn(renter : Customer) +checkIn (renters : ArrayList&lt; Customer &gt;) +checkOut() Grade: Each part 15 points Minus: No staple: -2...
View Full Document

Page1 / 2

Sol-Assignment12 - +setEmail(email : String) Room - number...

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

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