Question: Create a class called Account that has three attributes: accountholder ( String ) , accountOpenDate ( String ) , and balance ( double ) Create
Create a class called Account that has three attributes: accountholder String
accountOpenDateString and balance double
Create a constructor that assigns parameters to the instance variables
Create three accessor methods
Create one modifier method for the balance
Create a void method called makeDeposit that takes a double amount and
update the balance
Create a void method called withdraw that takes a double amount and
update the balance
Create a toString method that prints the account object as follow:
John Smith Open Date: Balance: $
Create a tester class and perform the following tasks:
Create three different account objects with information of your choice
Using your own information, call makeDepost, withdraw, and getBalance
for each account
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
