| 12345678910111213141516171819202122232425262728293031 |
- package com.zipcodewilmington.bankaccountlab;
-
- public abstract class Account {
- private double total;
-
-
- public Account(double total){
- this.total = total;
- }
-
- public void deposit(double total){
-
- this.total += total;
-
- }
-
-
- public double withdraw(double amount){
- total = total - amount;
-
-
- return amount;
- }
-
-
- public double getBalance(){
- return total;
-
- }
- }
|