ChrisEvaristo / Programacao-Avancada

Expandindo Conhecimento de Programação Avancada com orientação do Professor Cunha
0 stars 0 forks source link

cont. padrao composite #13

Open ChrisEvaristo opened 4 years ago

ChrisEvaristo commented 4 years ago

public class DepositAccount extends Component { private String accountNo; private float accountBalance;

public DepositAccount(String accountNo, float accountBalance) {
    super();
    this.accountNo = accountNo;
    this.accountBalance = accountBalance;
}

public String getAccountNo() {
    return accountNo;
}

public float getBalance() {
    return accountBalance;
}

}