Description: 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).
File list (Check if you may need any files):
b_PatientTest.java
b_Patient.java