Understand the Class and Problem The BankAccount classrepresents a basic bank account. It contains instance datarepresenting the account’s number, current balance, and name ofowner. Note that instance data can be an object reference variable(not just a primitive type), such as the account owner’s name,which is a reference to a String object. The constructor of theBankAccount class accepts three parameters that are used toinitialize the instance data. The deposit and withdraw methodsperform the basic transactions on the account, adjusting thebalance based on the parameters.
The UML diagram for the BankAccount class is as follows:BankAccount – balance: double – owner: String – accountNumber:
OR
OR