Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

According to the Inheritance principle you have to design and implement a superclass Person and the subclasses Doctor and Patient. The class Person should include

According to the Inheritance principle you have to design and implement a superclass Person and the subclasses Doctor and Patient. The class Person should include appropriate methods in order to comply with the encapsulation principle and hold information about the name, surname, date of birth and mobile number.

Doctor subclass should hold specific information and methods. You should add the medical licence number, the specialisation as instance variables, and the relative get/set methods.

The Patient subclass should hold specific information and methods. You should add a unique patient id as instance variables (attribute) and the relative get/set methods.

How to implement a class Consultation to represent the booked consultation with a specific doctor from a patient?

The class should hold information about: the date and time slot for the consultation the cost, notes, and the relative get/set methods Design and implement a class called WSkinConsultationManager, which implements the interface WestminsterSkinConsultationManager maintains the list of the doctors and provides all the methods for the system manager.

Add a new doctor to the system using user inputs. It should be possible to add a new doctor, with all the relevant information. Also, consider that the centre can allocate a maximum of 10 doctors.

. Delete a doctor from the system, selecting the medical licence number as a user input. Display a message with the information of the doctor that has been deleted and the total number of doctors in the centre

. Print the list of the doctors in the consultation centre. For each doctor, print on the screen all the stored information. The list should be ordered alphabetically according to the doctor's surname

. Save in a file all the information entered by the user so far. The next time the application starts it should be able to read back all the information saved in the file and continue to use the system.

how to write this using java code?

I NEED THE FULLY COMPLETED CODE

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

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions

Question

suggest a range of work sample exercises and design them

Answered: 1 week ago