(Subclasses of Account class) Use the class Account to model abank account with its properties account number, balance, annualinterest rate, and date created, and methods to deposit andwithdraw funds. Design two subclasses named CheckingAccount andSavingAccount accounts. A checking account has an overdraft limitto which you can assign a value 5000. A saving account cannot beoverdrawn. 1. Draw the UML diagram for the classes Account,Checking and Saving accounts and implement the classes. 2. Write atest program that prompts the user to enter the account number, andbalance and create objects of Account, CheckingAccount andSavingAccount and invoke there toString() methods, i.e. print alldata
OR
OR