November 27th, 2012, 05:35 PM
Design class structure
I am not sure, if I am here right! How you would design the class structure for the question below. Thanks
Design class structure for a building, floors and space. The space can be an apartment, a store or an
office. Include any properties, fields and methods you think would be interesting to have.
November 27th, 2012, 06:17 PM
Just looking at a building:
* A building contains floors
* A building has a name
* A building has an address
* A building has a management office (probably)
* A building can lock or unlock its doors
* A building can have its fire alarm go off
See how this works?
November 27th, 2012, 07:02 PM
Yeah I see! But I have to only write or it expect a UML Diagramm or so?? *Design
November 27th, 2012, 07:06 PM
I dunno. Ask whoever posed you the problem how they want the answer.