Question: 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
name(String), specialiazation(string)
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
experience(String),surgicalSkills(string).
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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!