Consider:


class BankAccount {
private int balance = 0;

BankAccount(int credit) {
balance = credit;
}