Results 1 to 7 of 7

Thread: Timetable

  1. #1
    Join Date
    Jan 2009
    Posts
    56
    Rep Power
    0

    Default Timetable

    Hello again, i ve working a project which need something like timetable(i mena something that counts the days and the hours) for doctor who want to create a calendar with his patients. Is there any package for this??
    thank you and sorry for my english!!!

    Freedom to Gaza!!!!!!!

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    Freedom comes to the peaceable.

    GregorianCalendar provides support for dates.

    You want to create a Schedule class and an Appointment class. The Schedule holds a list of Appointment. That's the core of your Model.

    You then want to create a View that displays Appointment in the Schedule, and a Controller to populate the view and handle its events.

  3. #3
    Join Date
    Jan 2009
    Posts
    56
    Rep Power
    0

    Default

    yeah ok in the class which named patientHistory i made 2 variables private ill and therapy and the date which the patient visit the doctor according to doctor schedule must be inherited by this class?

    Also a class can inherit methods from more than one class?

    Sorry for my english again.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Also a class can inherit methods from more than one class?
    A class can extend only one class, but the super class can be a child of its super class and so on up the inheritance tree. So a class can inherit from multiple classes but only vertically up a single inheritance tree, and not horizontally.

  5. #5
    Join Date
    Jan 2009
    Posts
    56
    Rep Power
    0

    Default

    thanks guys

  6. #6
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    You are working on a very large project. Start out by turning off your computer and grabbing a pencil and a pad of graph paper. Write out all the nouns involved in your project. These will end up being your classes. Just from what you've said, I could name at least half a dozen, and I could probably come up with 2-3 dozen more.

    Once you have a list, start with the most important ones. Put each in box, and draw lines between them to show relationships. Also, put each one on a piece of paper, and start writing down it attributes and what it does. These will become fields and methods.

    Once you can do this in a meaningful manner, you can turn your computer back on.

    I'm trying not to be rude, but you will waste *a lot* of time if you don't draw out a design first.

  7. #7
    Join Date
    Jan 2009
    Posts
    56
    Rep Power
    0

    Default

    yes i know, i have began without making any plan so i ve lost.

Posting Permissions

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