Results 1 to 2 of 2
  1. #1
    Twinkletoes is offline Member
    Join Date
    Nov 2012
    Posts
    1
    Rep Power
    0

    Default Class diagram help!

    Hi I am really struggling creating a class diagram for a hotel reservation system! I have the main classes I am going to use and the attributes within them but a, having severe trouble working out all the operations I need to use! Would appreciate any help!
    I need help with my booking class that will include startdate, duration, room:Room and refnumber.
    And my Room class which will include description, room type, and price. I have the basic getters and setters but am unsure what other operations I need!

    I also have my main control class and a user interface class

  2. #2
    Zyril is offline Senior Member
    Join Date
    Oct 2011
    Location
    Sweden
    Posts
    124
    Rep Power
    0

    Default Re: Class diagram help!

    Hi!

    This isn't really Java related since you can use diagrams or UML to define how your future code should be written for your program.
    You should take a good look at what is required of your classes. READ the specification of the program carefully, and then you will know what methods you will need.

    For instance, you might need the program to return the reference number of the flight booking, that means you will need a get-method to retrieve that value. Go through the specification and try to come up with what you need your code to do!

    When you've done that, start to draw a diagram!
    Take a look at this:

    UML basics: The class diagram

    I also wrote a post about this some time ago, not really going deep into class diagrams in particular, but overall UML and MVC.

    Perhaps you can find it useful!
    MVC help (Model - View - Controller)

    Good luck!

Similar Threads

  1. UML Class Diagram for web app
    By immortal in forum New To Java
    Replies: 4
    Last Post: 08-26-2012, 12:59 AM
  2. class diagram for creating forum
    By 10e5x in forum New To Java
    Replies: 7
    Last Post: 11-28-2010, 02:00 PM
  3. UML class diagram generator!
    By renegadeandy in forum Advanced Java
    Replies: 5
    Last Post: 04-11-2009, 07:08 AM
  4. Need a plugin for Class Diagram generation
    By pesho318i in forum Eclipse
    Replies: 0
    Last Post: 12-03-2008, 01:00 AM
  5. Replies: 0
    Last Post: 08-28-2008, 05:14 PM

Posting Permissions

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