create an interface for Bank with balance withdraw and deposit as concrete methods. using that interface, create a class
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
create an interface for Bank with balance withdraw and deposit as concrete methods. using that interface, create a class
create an interface for Bank with balance withdraw and deposit as concrete methods. using that interface, create a class bank account with data members name, account number and address method display () is needed to show balance. derive a subclass savings account and add the following details: return on investment and the method calcAmt() to show amount in the account after 1 year.create instance of savings account and show the use of withdraw and deposit abstract methods