文件名称:Patient
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 1次
- 提 供 者:
- z**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
声明Patient类表示在门诊室中的病人,此类对象包括私有数据成员name(String)、sex(char)、age(int)、weight(float)、allergies(boolean); 要求定义set方法及get方法,定义一个无参及一个带参的构造方法,重写toString方法,使得可以使用System.out.println(p1)(p1为Patient类的对象)在屏幕上显示病人p1的各个信息,显示格式为: Name : xxx Sex: xxx
Age: xxx Weight: xxx Allergies:xxx 定义一个测试类对Patient类进行测试(生成两个病人对象,显示他们的各个信息)。-Patient Class statement said the patients in the clinic, including the private data members of such an object name (String), sex (char), age (int), weight (float), allergies (boolean) requirements defined set method and get method , define a free parameter and a band parameter constructor, override the toString method, so can use System.out.println (p1) (p1 for the Patient class object) displayed on the screen all patients with p1 information display format : Name: xxx Sex: xxx Age: xxx Weight: xxx Allergies: xxx define a test class of the Patient class test (object generates two patients, showing their various information).
Age: xxx Weight: xxx Allergies:xxx 定义一个测试类对Patient类进行测试(生成两个病人对象,显示他们的各个信息)。-Patient Class statement said the patients in the clinic, including the private data members of such an object name (String), sex (char), age (int), weight (float), allergies (boolean) requirements defined set method and get method , define a free parameter and a band parameter constructor, override the toString method, so can use System.out.println (p1) (p1 for the Patient class object) displayed on the screen all patients with p1 information display format : Name: xxx Sex: xxx Age: xxx Weight: xxx Allergies: xxx define a test class of the Patient class test (object generates two patients, showing their various information).
(系统自动生成,下载前可以参看下载内容)
下载文件列表
b_PatientTest.java
b_Patient.java
b_Patient.java