Employee -...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // Employee.java Author: Lewis and Loftus // // Solution to Programming Project 7.5 //******************************************************************** / import java.text.NumberFormat; i public class Employee extends Person { private String occupation; private int income; //------------------------------------------------------------------ // Creates an employee with age and location, occupation and income
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //------------------------------------------------------------------public Employee(int personAge, String personLocation, String personOccupation, int personIncome) { super( personAge, personLocation); occupation = personOccupation; income = personIncome; } public String toString() { return super.toString() + "\nOccupation: " + occupation + "\nIncome: " + NumberFormat.getCurrencyInstance().format(income); } }...
View Full Document

Ask a homework question - tutors are online