Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Tax_Package;
- public class Customer {
- protected String userInput;
- protected Integer taxFn;
- protected Integer finYear;
- protected Tax custTax;
- //default constructor
- public Customer() {
- userInput = "";
- taxFn = 0;
- finYear = 0;
- custTax = null;
- // TODO Auto-generated constructor stub
- }
- //second constructor
- public Customer(String userInput, Integer taxFn, Integer finYear, Tax custTax) {
- super();
- this.userInput = userInput;
- this.taxFn = taxFn;
- this.finYear = finYear;
- this.custTax = custTax;
- }
- public String getUserInput() {
- return userInput;
- }
- public void setUserInput(String userInput) {
- this.userInput = userInput;
- }
- public Integer getTaxFn() {
- return taxFn;
- }
- public void setTaxFn(Integer taxFn) {
- this.taxFn = taxFn;
- }
- public Integer getFinYear() {
- return finYear;
- }
- public void setFinYear(Integer finYear) {
- this.finYear = finYear;
- }
- public Tax getcustTax() {
- return custTax;
- }
- public void setTax1(Tax custTax) {
- custTax = custTax;
- }
- public String toString(){
- String temp = "Enter your name: "+userInput+"\n"+"Enter income for period: "+finYear+"\n"+"Enter your Tax File Number: "
- +taxFn+"\n"+"Enter your financial year: "+finYear+"Enter pre-tax superannuation contribution for period: "+finYear+"\n"+
- "Enter claimable deduction (s) for period "+finYear+"\n"+custTax.toString();
- return temp;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement