Question: Write the BankAccount class in pseudocode . Use methods (getters and setters) to get and set the properties of account id and holder name. Provide
Write the BankAccount class in pseudocode.
Use methods (getters and setters) to get and set the properties of account id and holder name. Provide only a getter for account balance, not a setter, malfunctioning or malicious code could use a setter to set the balance inappropriately! To ensure our bank is following proper accounting practices, the only way to a balance can be modified is through credit (add) and debit (subtract) methods. If the debit method is called with an amount greater than the total balance, stop the transaction and output an insufficient funds message. It is also critical that no variables in the class can be accessed directly from outside of the class.

Java Class BankAccount (default package) a accountld: int a accountHolderName: String a balance: double BankAccount) o deposit(double):void o withdraw(double):void
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
