Question: In Java Implement an abstract class named Person and two subclasses named Student and Staff in Java. A person has a name, address, phone number

 In Java Implement an abstract class named Person and two subclasses

In Java Implement an abstract class named Person and two subclasses named Student and Staff in Java. A person has a name, address, phone number and e-mail address. A student has a credit hour status (freshman, sophomore, junior or senior). Define the possible status values as String constants. An employee has an office, salary and date-hired. Implement the above classes in Java. Provide Constructors for classes to initialize private variables. Override the toString0 method in each class to return a String that contains the class name and the person's name in the following format "Class: Student, Name: John Doe Implement a class named Main which will contain your public static void main(Stringl args) method. The main method should create 1 Student object and 1 Staff object in code using the constructors described above. There is no user for this assignment, so do NOT provide functionality for creating Student and Staff objects using the console. The main method will also print the person's name and the class name of each of the 2 objects that were created using each objects toString0 method. Your application should have exactly 4 classes. Main, Person, Student, and Staff. Properly javadoc comment your code

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!