Question: In this assignment, you will use object oriented programming concepts to design a program for our school. Design an abstract class named Person, and its

In this assignment, you will use object oriented programming concepts to design a program for our school. Design an abstract class named Person, and its two (concrete) subclasses named Student and Faculty. A Person has a name, e-mail address, and id. Name and e-mail address is String, while id is an integer. All persons also share a static variable named count, which shows the number of Persons created so far. A Student additionally has class status (FRESHMAN, SOPHOMORE, JUNIOR, or SENIOR). Define the status as a public static final constant, with values 1, 2, 3 and 4, respectively (i.e., 1 means FRESHMAN and so on). A Faculty member additionally has courses taught, which is an Array of String, with length 3. All classes should additionally override the toString method and the equals method. The equals method should compare the id of the two persons. Design the classes first using UML and then in Java. Write down your work on a piece of paper.

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!