| Description |
Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s owner, the account number, and the account’s current balance. The interest rate for the account is stored as a constant. The class should have constructors that permits an account to be opened when:\n - the account name, account number, and initial balance are specified\n - only the account name and the account number are specified. In this case, initial balance is assumed to be zero.\nThe other methods of this class should perform various services on the account (making deposits, withdrawals, adding interest to the account). These methods should examine the data passed into them to make sure the requested transaction is valid.\n\nThe Transactions2 class creates some bank accounts and requests various services. |