Spring08_PracticeExam2_UML

Spring08_PracticeExam2_UML - CS1316 Spring 2008 Practice...

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

View Full Document Right Arrow Icon
NAME: ___________________________________ PRISM ID:_______________________________ UML Class Diagrams: Analyze the provided class diagram Answer the questions below about the UML class diagram provided. Building -address : String -hoursOpen : String +getAddress() : String +setAddress( address : String) +getHours() : String +setHours(hours : String) Person #name : String #address : String +getName() : String +setName( name : String ) +getAddress() : String +setAddress( address : String) Employee #employeeID : int +getID() : int +setID(id : int) +work() Office -number: int +getNumber() : int +setNumber( number : int) +getOccupant() : SalariedEmployee +setOccupant(occupant : SalariedEmployee) +getBuilding() : Building HourlyEmployee #hourlyRate : double +getRate() : double +setRate( rate : double) SalariedEmployee #weeklyRate : double +getRate() : double +setRate( rate : double) +moveOffice(newOffice : Office) -office 1 * -building -office 1 -occupant
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

Spring08_PracticeExam2_UML - CS1316 Spring 2008 Practice...

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