("Press 1 to add doctor \n Press 2 to show doctors. Inside the Demo class, I am adding Patients and Doctors, and they are being added to respective lists of the Hospital class.ĭoctor o1 = new Doctor("James","Opthalmologist") Also, inside the Doctor class, there is a list of Patients (this is a specific Patient list of specific Doctor). Inside the Hospital class are two ArrayLists of Patients and Doctors. I have created four classes: Patient, Doctor, Hospital, and Demo. I have implemented it using the following design. Now open a command prompt by pressing win rsimultaneously and go to the location of the hospitalmanagement.javaby using the cd command. First, create a folder on your desktop with any name then save or download the code as hospitalmanagement.java. I am working on hospital management system project. How to run this Hospital Management System Project in Java with Source Code PDF.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |