Question: Overview For this assignment, you will be designing a class that represent a Bank Account object and banking activities. Each Bank Account object has only
Overview For this assignment, you will be designing a class that represent a Bank Account object and banking activities. Each Bank Account object has only 3 instance variables: an id, checking balance and Saving balance. This Bank account class represents a regular account Project Specification Your Class BankAccount must include the following constructors and methods. Description Default censtructior, scts the id to, and balances to 0 Methods& Constructers BankAccount nitID, double t (String Constructs a Bank Account object given the id as a String, and holances for chocking saving as doubles initchecking, initsaving rivate String getIDAccess this accounts unique identifier. lic double this account's current balance in checking account tChecking lic double getSaving ( this account's curent balance in saving accourt Returns total balance of checking and saving lic void setID String Sets the id lic void Credit this account's chocking by depositAmount, if deposit it (depositamount) amount is negative or zero the balance will not change Debit this account's chocking balance by withdrawAmouns if in is positive and not greater than this accounf's current balance. It returns true if Owidraw Amount
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
