Advertisement
Guest User

Untitled

a guest
May 20th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. package Tax_Package;
  2.  
  3. public class Customer {
  4. protected String userInput;
  5. protected Integer taxFn;
  6. protected Integer finYear;
  7. protected Tax custTax;
  8.  
  9. //default constructor
  10. public Customer() {
  11. userInput = "";
  12. taxFn = 0;
  13. finYear = 0;
  14. custTax = null;
  15.  
  16.  
  17. // TODO Auto-generated constructor stub
  18. }
  19.  
  20. //second constructor
  21. public Customer(String userInput, Integer taxFn, Integer finYear, Tax custTax) {
  22. super();
  23. this.userInput = userInput;
  24. this.taxFn = taxFn;
  25. this.finYear = finYear;
  26. this.custTax = custTax;
  27. }
  28.  
  29. public String getUserInput() {
  30. return userInput;
  31. }
  32.  
  33.  
  34. public void setUserInput(String userInput) {
  35. this.userInput = userInput;
  36. }
  37.  
  38.  
  39. public Integer getTaxFn() {
  40. return taxFn;
  41. }
  42.  
  43.  
  44. public void setTaxFn(Integer taxFn) {
  45. this.taxFn = taxFn;
  46. }
  47.  
  48.  
  49. public Integer getFinYear() {
  50. return finYear;
  51. }
  52.  
  53.  
  54. public void setFinYear(Integer finYear) {
  55. this.finYear = finYear;
  56. }
  57.  
  58.  
  59. public Tax getcustTax() {
  60. return custTax;
  61. }
  62.  
  63.  
  64. public void setTax1(Tax custTax) {
  65. custTax = custTax;
  66. }
  67.  
  68.  
  69. public String toString(){
  70. String temp = "Enter your name: "+userInput+"\n"+"Enter income for period: "+finYear+"\n"+"Enter your Tax File Number: "
  71. +taxFn+"\n"+"Enter your financial year: "+finYear+"Enter pre-tax superannuation contribution for period: "+finYear+"\n"+
  72. "Enter claimable deduction (s) for period "+finYear+"\n"+custTax.toString();
  73. return temp;
  74. }
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement