Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class testproblem {
- public static void main (String[] args) {
- Person person = new Person("Travis Sweet","123 Main Street","111-111-1111","travissweet@email.com" );
- Person student = new Student("Travis Sweet","123 Main Street","111-111-1111","travissweet@email.com","senior" );
- Person employee = new Employee("Travis Sweet","123 Main Street","111-111-1111","travissweet@email.com","306","30,000",(DATE));
- Person faculty = new Faculty("Travis Sweet","123 Main Street","111-111-1111","travissweet@email.com","506","50,000",(DATE),"4pm-10pm","Executive");
- Person staff = new Staff("Travis Sweet","123 Main Street","111-111-1111","travissweet@email.com","610","25,000",(DATE),"Janitor");
- System.out.println(person.toString() + "\n");
- System.out.println(student.toString() + "\n");
- System.out.println(employee.toString() + "\n");
- System.out.println(faculty.toString() + "\n");
- System.out.println(staff.toString() + "\n");
- }
- }
Add Comment
Please, Sign In to add comment