View the step-by-step solution to:

Design a class named Person and its two subclasses named Student and Employee. Make Faculty and Staff subclasses of Employee. A person has a name,...

Design a class named Person and its two subclasses named Student and Employee. Make Faculty and Staff subclasses of Employee. A person has a name, address, phone number and email address. A student has a class status (freshman, sophomore, junior and senior). Define a status as a constant. An employee has an office, salary, and date hired. Use the MyDate class defined in Problem 2 to create a object for date hired. A faculty member has office hours and a rank. A staff member has a title. Override the toString method in each class to displat the class name and person’s name. Draw the UML diagram for the classes and implement them, Write a test program that creates a Person, Student, Faculty, and Staff, and invokes their toString() methods.

Top Answer

Hey there, for your question, The solution is public class Person_class { String name; String address; String phone; String... View the full answer

3 comments
  • hope you get and don't forget to rate it.
    • SME-CSE
    • Jul 20, 2016 at 10:51am
  • class test, please change this line. -> like this Person_class = new Person( ......);
    • SME-CSE
    • Jul 20, 2016 at 10:54am
  • check this class test for creating this object
    • SME-CSE
    • Jul 20, 2016 at 10:55am

Sign up to view the full answer

Other Answers

//Design a class named Person public class Person { //A person has a name, address, phone number, and email address.    ... View the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online