Question: A Moving to another question will save this response. Question 1 of 10 Question 1 4 points Given the following UML diagrams for the classes

A Moving to another question will save this response. Question 1 of 10 Question 1 4 points Given the following UML diagrams for the classes Patient and Doctor, and assuming the classes are already implemented, write a test class with a main method to do the following: [1 marks] Create object(s) for the following Patient Patient Name: Ali Hassan, patientid: 3344, age: 60 [1 marks] Define an array of 20 Doctors, call the array doctorsList [2 marks] Assume that the array is populated with 20 doctors, write a code to find the number of doctors who are surgeons. Patient patientiD:int Doctor patientName:String doctorID:String Fage:int +Patient(int String int) name:String 17+ Getters and Setters speciality:String Doctor(String, String, String) +GroupOfAge():String V/+Getter and Setters +toString():String HisSurgeon (): boolean HtoStringo:String For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). ya
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
