Results 1 to 7 of 7
- 01-08-2009, 02:27 PM #1
- 01-08-2009, 03:48 PM #2
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.
- 01-08-2009, 03:58 PM #3
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.
- Also a class can inherit methods from more than one class?
- 01-08-2009, 04:06 PM #5
- 01-08-2009, 05:21 PM #6
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.
- 01-08-2009, 05:52 PM #7