Guest User

Untitled

a guest
Nov 18th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. import java.time.*;
  2. public class Bank{
  3. public static void main (String[] args) {
  4.  
  5. }
  6. }
  7. class Customer{
  8. String firstname, surname, birthDate, status, nationalID, email;
  9. int bankAccounts, mobileNumber;
  10. LocalDate date;
  11.  
  12. Customer(String firstname, String surname, String birthDate, String nationalID){
  13.  
  14. }
  15.  
  16.  
  17. public String getName(){
  18. return this.firstname;
  19. }
  20.  
  21. public String getSurname(){
  22. return this.surname;
  23. }
  24.  
  25. public String getBirthDate(){
  26. return this.birthDate;
  27. }
  28.  
  29. public String getStatus(){
  30. return this.status;
  31. }
  32.  
  33. public String getNationalID(){
  34. return this.nationalID;
  35. }
  36.  
  37. public String getEmail(){
  38. return this.email;
  39. }
  40. public int getAccounts(){
  41. return this.bankAccounts;
  42. }
  43. public int getMobile(){
  44. return this.mobileNumber;
  45. }
  46.  
  47. public void setName(String n){
  48. n = this.firstname;
  49. }
  50.  
  51. public void setSurname(String s){
  52. s = this.surname;
  53. }
  54.  
  55. public void setBirthDate(String d){
  56. d = this.birthDate;
  57. }
  58.  
  59. public void setStatus(String st){
  60. st = this.status;
  61. }
  62.  
  63. public void setNationalID(String nt){
  64. nt = this.nationalID;
  65. }
  66.  
  67. public void setEmail(String e){
  68. e = this.email;
  69. }
  70.  
  71. public void setAccounts(int a){
  72. a = this.bankAccounts;
  73. }
  74.  
  75. public void setMobile(int m){
  76. m = this.mobileNumber;
  77. }
  78. }
  79. class BankAccount{
  80. int accountNumber;
  81. double accountBalance;
  82.  
  83. public int getAccountNumber(){
  84. return this.accountNumber;
  85. }
  86.  
  87. public double getAccountBalance(){
  88. return this.accountBalance;
  89. }
  90.  
  91. public void setAccountNumber(int acc){
  92. acc = this.accountNumber;
  93. }
  94.  
  95. public void setAccountBalance(double ab){
  96. ab = this.accountBalance;
  97. }
  98.  
  99. BankAccount(int accountNumber){
  100.  
  101. }
  102. }
  103. class SavingsAccount extends BankAccount{
  104. int accountNumber;
  105. double accountBalance;
  106.  
  107. BankAccount(int accountNumber){
  108. super(2);
  109. }
  110.  
  111. }
  112. class CurrentAccount extends BankAccount{
  113. int accountNumber;
  114. double accountBalance;
  115.  
  116. BankAccount(int accountNumber){
  117. super(2);
  118. }
  119. }
Add Comment
Please, Sign In to add comment