Answered step by step
Verified Expert Solution
Link Copied!

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
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

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

5. Understand how cultural values influence conflict behavior.

Answered: 1 week ago