Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions