Guest User

Untitled

a guest
Mar 2nd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. public class testproblem {
  2. public static void main (String[] args) {
  3.  
  4.  
  5. Person person = new Person("Travis Sweet","123 Main Street","111-111-1111","travissweet@email.com" );
  6. Person student = new Student("Travis Sweet","123 Main Street","111-111-1111","travissweet@email.com","senior" );
  7. Person employee = new Employee("Travis Sweet","123 Main Street","111-111-1111","travissweet@email.com","306","30,000",(DATE));
  8. Person faculty = new Faculty("Travis Sweet","123 Main Street","111-111-1111","travissweet@email.com","506","50,000",(DATE),"4pm-10pm","Executive");
  9. Person staff = new Staff("Travis Sweet","123 Main Street","111-111-1111","travissweet@email.com","610","25,000",(DATE),"Janitor");
  10. System.out.println(person.toString() + "\n");
  11. System.out.println(student.toString() + "\n");
  12. System.out.println(employee.toString() + "\n");
  13. System.out.println(faculty.toString() + "\n");
  14. System.out.println(staff.toString() + "\n");
  15.  
  16. }
  17.  
  18. }
Add Comment
Please, Sign In to add comment