Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In java write Abstract doctor class Doctor class should have the following attributes and methods Attributes name ( String ) , specialiazation ( string )
In java write
Abstract doctor class
Doctor class should have the following attributes and methods
Attributes
nameString specialiazationstring
Define a constructur for doctor with name and specialization as parameters.
Abstract methods
displayDetails performSurgery both the methods do not return any value.
Surgeon class
Surgeon class should inherit doctor and should have the following attributes
Attributes
experienceStringsurgicalSkillsstring
call the parent constructor with arguments inheritand
IInmplement displayDetails to print "surgeon: surgical Experience:
Implement performSurgery to print utilizes to perform.
Also implement methods
preprepare which prints preparing for surgery"
finishSurgery which prints succesfully completes the surgery"
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started