Spring08_UML2

Spring08_UML2 - what the symbol represents). Animal #name :...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Spring 2008 CS1316 UML Practice UML Class Diagrams: Analyze the provided class diagram Answer the questions below about the UML class diagram provided. 1. What do the +, # and symbols mean? 2. What are the instances variables (or fields or attributes) of Person? 3. Which classes understand the method sleep? 4. How many Dogs can be associated with one Person? (Do not simply put a symbol. Explain what the symbol represents). 5. How many Persons can be associated with one Dog? (Do not simply put a symbol. Explain
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: what the symbol represents). Animal #name : String #species: String +getName() : String +setName( name : String ) +getSpecies() : String +setSpecies( address : String) +eat(food: String) +sleep() +play() Dog -breed: String +getBreed() : String +protectOwner() +runAway() Person -address : String +getAddress() : String +setAddress(address : String) +work() -owner 1 * -pet...
View Full Document

Ask a homework question - tutors are online