Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2007
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    new to java - paper submission

    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.

  • #2
    New Coder
    Join Date
    Aug 2007
    Posts
    59
    Thanks
    3
    Thanked 1 Time in 1 Post
    sounds like you got more with the question, such as what the paramerter is about with the hotel.
    or something atleast i wouldent get what objects and feilds there talking about to list and whatever...

  • #3
    Regular Coder Aradon's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    734
    Thanks
    0
    Thanked 20 Times in 19 Posts
    Quote Originally Posted by Bluej View Post
    as part of my paper submission for coursework based on a software model of a hotel im being asked the following question -


    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.
    It sounds like that you are given some amount of code and you have to look at that code and figure out what happens when the constructor of the hotel object is called, what's going on.

    If you do indeed have code, post it and we can help you out, but NOT give you the answer.
    "To iterate is human, to recurse divine." -L. Peter Deutsch


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •