Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

rite a Java program that allows us to create and maintain a list of individuals in a class. There are two types of individuals in

rite a Java program that allows us to create and maintain a list of individuals in a class. There are two types of individuals in our class, i.e., instructors and students. Both types of individuals consist of a name and an email address. The instructors have employee IDs, while students have student IDs and a grade for the course. 2. Create an abstract class for Person. Include appropriate fields and methods that belong to an individual in our system in this class, where applicable. 3. Create two classes named Instructor and Student that extend Person. These two subclasses should implement specific fields and methods of entities they represent. 4. Create a Main class that creates multiple objects of both Instructor and Student types and maintains them in a single list. The Main class should also create a new text file in your working directory, and write the list of all created individuals (instructors and students) to this file in textual format at the end of execution, with every entry written to a new line. You can write the list to file in JSON format for a small bonus. 6. Always pay attention to the design and quality of your code, encapsulation, access modifiers, etc.

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

Database Management An Organizational Perspective

Authors: Richard T. Watson

1st Edition

0471305340, 978-0471305347

More Books

Students also viewed these Databases questions

Question

demonstrate the importance of induction training.

Answered: 1 week ago