#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    21
    Rep Power
    0

    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.
  2. #2
  3. Come play with me!
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,745
    Rep Power
    9397
    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?
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    21
    Rep Power
    0
    Yeah I see! But I have to only write or it expect a UML Diagramm or so?? *Design
  6. #4
  7. Come play with me!
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,745
    Rep Power
    9397
    I dunno. Ask whoever posed you the problem how they want the answer.

IMN logo majestic logo threadwatch logo seochat tools logo