Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Therron Telford
- AP CS A
- October 14, 2017
- */
- public class BankAccount {
- private double balance;
- private double deposit;
- public void deposit(){
- double deposit = 100;
- }
- public String toString(){
- return "The balance is " + (balance + deposit);
- }
- }
- // in the main of BankAccountTest
- // BankAccount mine = new BankAccount();
- // mine.deposit();
- // System.out.println(mine);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement