Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Moving to another question will save this response. Question 2 Que 6 pois Write the Java code for the class Doctor based on the UML

image text in transcribed

Moving to another question will save this response. Question 2 Que 6 pois Write the Java code for the class Doctor based on the UML below and note the following: [1 marks] Declare all member variables as in the UML. [1 mark] Write the constructor which takes 3 parameters to set the variables of the class Doctor. [1 mark] Write the setter and getter for the name attribute I/Assume that the remaining setters and getters are implemented (Don't write them), and you can use them in other classes. [1.5 mark] write a method is Surgeon() that returns true if the speciality contains the word "surgery", and false otherwise. 11.5 mark] Write the toString() method which should return a string with Doctor name, Doctor in and the specialty: For example: Dr. Mohamed Ahmad, ID: ENT4567, is specialized in: ENT-surgery Doctor doctorID:String -name:String speciality:String Doctor(String, String, String) \/+Getter and Setters HisSurgeon 0:boolean toStringo:String

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions

Question

In what ways is the effectiveness of public relations evaluated?

Answered: 1 week ago