Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Conta {
- int numero;
- String dono;
- double saldo;
- double limite;
- boolean saca(double valor) {
- if(this.saldo<valor) {
- return false;}
- else {this.saldo -= valor;
- return true;
- }
- }
- void deposita(double quantidade) {
- this.saldo+=quantidade;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement