Package account
Interface IAccount
- All Known Implementing Classes:
AccountImplValid4J
,AccountImplValid4JBestPractice
public interface IAccount
- Author:
- Horst Lichter, Jochen Ludewig Software Engineering – Grundlagen, Menschen, Prozesse, Techniken, dpunkt.verlag (c) 2023 Defines the interface of a simple bank account
-
Method Summary
-
Method Details
-
deposit
void deposit(int amount)- Parameters:
amount
- to be deposited
-
withdraw
void withdraw(int amount)- Parameters:
amount
- to be withdrawn
-
getHolder
java.lang.String getHolder()- Returns:
- the holder of the account
-
setHolder
void setHolder(java.lang.String newHolder)- Parameters:
newHolder
- the new account holder
-
overdraft
int overdraft()- Returns:
- the defined overdraft amount
-
balance
int balance()- Returns:
- the account's balance
-