Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!