new to java - paper submission question.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dirtycash
    New Member
    • Nov 2007
    • 2

    #1

    new to java - paper submission question.

    as part of my paper submission for coursework based on a software model of a hotel im being asked the following question -


    draw a diagram showing the state of the hotel after the constructor has been invoked
    with a parameter value of 3. To show a state of the object you need to list its fields
    and the value of each of those fields. For reference types, draw an arrow from the field to
    the object it represents. You should also show the state of any Room and Occupier objects that have
    been created.
    im not exactly sure what i have to do here..
    can someone explain it to me?

    i especially dont understand the "showing the state of the hotel after the constructor has been invoked
    with a parameter value of 3" bit of it.
    many of the other questions are phrased this way, so if you could give m some advice on what to do id really appreciate it.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by dirtycash

    i especially dont understand the "showing the state of the hotel after the constructor has been invoked
    .....
    Originally posted by yourQuestion
    To show a state of the object you need to list its fields and the value of each of those fields.
    If that part of your question is not clear to you, then I guess you should go back to your teacher and ask them to explain it to you.

    Comment

    Working...