Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions

Question

5. How do economic situations affect intergroup relations?

Answered: 1 week ago