文件名称:Patient
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.49kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
声明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).
相关搜索: java patie
clinic
(系统自动生成,下载前可以参看下载内容)
下载文件列表
b_PatientTest.java
b_Patient.java
b_Patient.java
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
