Question: Need help with this question, please make sure the respond is in java only, please hurry Assignment 3 Create a base class called doctor with
Assignment 3 Create a base class called doctor with variables doctor name (data type of this variable is String - doctor ID (datatype of this variable could be int like 123 or String the A1234) - name of the hospital that the doctor works for data type for this variable is String Create a derived class called Specialization with variable Specialization area. (This variable is of data type String) Specialization area variable holds value to show the sea of doctors specialization Example for values of Specialization area : Paediatrics / Other Dermatology Neurosurgeon / Gynaecology Anastasia And display the values of bure and derived classes through antarkanon. Use impul) method to set the variables with values. You can use Somercians to get input from user and assign it to variables Or you can pass the values to the variables through the program tell Input cases: Input 1 All variables declared a public or do where the access modifier is not specified) Acoust the variables of super class by creating an object of drived class and print the variables Ionut All variables declared as public of detault (where the access modifier is not specified) Access the variables et bases by creating an object of these cines and print base cose variatie Access the variables et derived to and bases by creating derved as objects and print base de variables derived class variable Input Date class variables declared that Derived as variables de spor default Access the variation of super class and the variables o derived chans by creating an object of derved class and all the variables
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
