The above diagram has five classes which are doctor, patient, department, reception and bill. The doctor and patient classes are linked with each other. The doctor class is linked with the department class for the information of the department of the doctors. The patient class is linked with the reception class. The reception class is linked with the bill class which is for managing the bills.