I have a task which I have to do and I need your help. I need to know the code.
The Patient class must store the following information about a patient: the patient's reference number as an int, the patient's name as a String, their age as an int , the patient's date of birth as a Date. In addition, the class also stores the patient's arrival time and the time they started their treatment, both of type Time.
Write a constructor which sets the patient's reference number, name, age and date of birth from suitable formal parameters. The date of birth should be represented by three formal parameters of type int which are then passed on as actual parameters to a Date constructor. The time when the patient arrived and the time when they start their treatment should be set to null.
Stab, if that is your real name...One thing you must realize that this is a forum to guide people in the right direction, not do their homework assignments.If you are in a java class at school, try reading some of the notes, im sure your instructor didn't assign you to write a program unless they taught you how. But, one tip i can give is that in assignment questions they often describe what "instance variables" are needed in the description of the problem itself, and are usually the nouns.These instance variables usually have private acess within a class, and are used to describe "features" of that class. Anyways here are some links that could help you get started, but other then that you can always seacrh on google, im sure there are 1000000's of begginners java tutorials!good luck! If you have any specific question im sure myself or anyone else will try to answer it for you. tutorial 1 Tutorial 2 [ February 07, 2006: Message edited by: luc comeau ]
National Research Council<br />Internet Logic Department