Last active
March 11, 2017 18:20
-
-
Save j5ik2o/39f87640ce952f4beefec6ec918f57a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BankAccount { | |
public void setName(String name) { | |
this.name = name; | |
} | |
public void setCustomerId(long customerId) { | |
this.customerId = customerId | |
} | |
public void setRegisterDate(Date registerDate) { | |
this.registerDate = registerDate; | |
} | |
public void setAmount(long amount) { | |
this.amount = amount; | |
} | |
// コンストラクタその他は省略 | |
} | |
BankAccount bankAccount = new BankAccount(); | |
bankAccount.setName("会社用口座"); | |
bankAccount.setCustomerId(userId); | |
bankAccount.setRegisterDate(now); | |
bankAccount.setAmount(100000L); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment