This commit is contained in:
Tanmay 2022-09-02 12:09:51 +01:00
parent 6560136644
commit 43ce3fa190
2 changed files with 2 additions and 24 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
os/code/target/* os/code/target/*
database/code/__pycache__/ database/code/__pycache__
*.class

View File

@ -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);
}
}