Write a Person class that has these attributes: person_ID, first and last names, and age Default and overloaded constructors Accessors and mutators equals method toString method (make this virtual if C++, don't forget to prep the class for polymorphism) Inheritance: Create a child class to Person called Student: Attributes: GPA and status (freshman, sophomore, junior, senior, graduate, graduated).  Make sure you have appropriate accessor/mutator methods Create another child class to represent Faculty.  This class will have faculty rank and length of service as attributes along with an office location.  Again, add methods as needed.   Application Create an application that displays a menu that allows users to add students or faculty, or print either one or exit.   Deliverable: Submit your source code and classes on Github (you will be supplied an account) You will also submit a Word document and your code on Canvas.  In the document you iwll write a summary of your design process and show your findings with properly labeled screenshots of your results

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 5PE
icon
Related questions
Question

Classes:

Write a Person class that has these attributes:

person_ID, first and last names, and age

Default and overloaded constructors

Accessors and mutators

equals method

toString method (make this virtual if C++, don't forget to prep the class for polymorphism)

Inheritance:

Create a child class to Person called Student:

Attributes: GPA and status (freshman, sophomore, junior, senior, graduate, graduated).  Make sure you have appropriate accessor/mutator methods

Create another child class to represent Faculty.  This class will have faculty rank and length of service as attributes along with an office location.  Again, add methods as needed.

 

Application

Create an application that displays a menu that allows users to add students or faculty, or print either one or exit.

 

Deliverable:

Submit your source code and classes on Github (you will be supplied an account)

You will also submit a Word document and your code on Canvas.  In the document you iwll write a summary of your design process and show your findings with properly labeled screenshots of your results.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,