mirror of
https://github.com/robindhole/fundamentals.git
synced 2025-03-15 16:50:10 +00:00
Cleanup.
This commit is contained in:
parent
6560136644
commit
43ce3fa190
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
os/code/target/*
|
||||
database/code/__pycache__/
|
||||
database/code/__pycache__
|
||||
*.class
|
||||
|
@ -1,23 +0,0 @@
|
||||
public class OopBankAccount {
|
||||
private Integer number;
|
||||
private Integer balance;
|
||||
|
||||
public OopBankAccount(Integer number, Integer balance) {
|
||||
this.number = number;
|
||||
this.balance = balance;
|
||||
}
|
||||
|
||||
void deposit(Integer amount) {
|
||||
this.balance += amount;
|
||||
}
|
||||
|
||||
void withdraw(Integer amount) {
|
||||
this.balance += amount;
|
||||
}
|
||||
|
||||
void transfer(OopBankAccount destination, Integer amount) {
|
||||
this.withdraw(amount);
|
||||
destination.deposit(amount);
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user