Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using java please Person, Student, Employee, Faculty, and Staff classes: Design a class name Person and its two subclasses name Student and Employee Make Faculty

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Using java please

Person, Student, Employee, Faculty, and Staff classes: Design a class name Person and its two subclasses name Student and Employee Make Faculty and Staff subclasses of Employee. A person has a name, address (String type) A student has a status: freshman, sophomore, junior, or senior (String type) An employee has an office (string), and date hired by year (integer) A faculty member has office hours (String) and a rank: Lecturer, Assistant Professor, Assosicate Professor, or Professor (String) A staff member has a title: staff assistant, or IT manager (String) Override the toString0 method in each class to display the object information Each class must have correct data (as mentioned above), contractor, and methods showed in UML diagram in page 2 You could have more contractors or methods, but make sure you implement all contractors and methods showed in page 2 You have to implement all and only data field mentioncd above, that also prescntcd in diagram on page 2 (That meant you CAN NOT have difference data field other than what shown in page 2) Write a test program name TestSchoolManagement, exactly same as the one on page 3, that creates a Person, Student, Employee, Faculty, and Staff object, invokes their toString0 methods, and test their other methods. Note: You have to use all the code show in page 3 to implcmcnt your test program. I will you that code to grade you classes to Draw UML diagram for cach class that show hierarchy relation, see the diagram in page 02 for example (also see figue 11.1 page 411 for other example) and implement them Test your proram TestSchoolManagement

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_2

Step: 3

blur-text-image_3

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

Inference Control In Statistical Databases From Theory To Practice Lncs 2316

Authors: Josep Domingo-Ferrer

2002nd Edition

3540436146, 978-3540436140

More Books

Students also viewed these Databases questions