Question
In Java: Create an abstract superclass Person and two subclasses Student and Instructor. The person class should include information such as id, first name, last
In Java:
Create an abstract superclass Person and two subclasses Student and Instructor. The person class should include information such as id, first name, last name, etc. A student class should contain more information such as the number of years in college and email address, and an instructor class should contain information such as office number and phone number, etc. You should also include methods to get/set values of the variables of the objects.
Create a database class that includes an array of references to all Students and an array of references to all Instructors, methods to add students and instructors, methods to retrieve student/instructor reference using persons id, methods to remove student/instructor using either the object reference of persons id, methods for printing all students or instructors, methods for taking input from command line. Reading and writing students and instructors from and to a file will be convenient for you to have it for testing purpose.
Create an application, the main program that creates a People object and makes calls to those methods you implemented. The main program is the user interface to this database software and you should expose the full functionality of the database to users via easy-to-use interface in command line
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