# Q1 Suppose you have deposited rs 2000, 3000, 4000 in Banks-SBI, BOB, HDFC respectively. Now you have to print the amount deposited by you in a particular Bank. Create a Class ‘Bank’ with a function ‘showBalance’ which returns 0. Make its three subclasses named ‘SBI’, ‘BOB’, ‘HDFC’ with a function with the same name ‘showBalance’ which returns the amount deposited in that particular Bank. Call the function ‘showBalance’ by the object of each of the three Banks.

Q1 Suppose you have deposited rs 2000, 3000, 4000 in Banks-SBI, BOB, HDFC respectively. Now you have to print the amount deposited by you in a particular Bank.
Create a Class ‘Bank’ with a function ‘showBalance’ which returns 0. Make its three subclasses named ‘SBI’, ‘BOB’, ‘HDFC’ with a function with the same name ‘showBalance’ which returns the amount deposited in that particular Bank. Call the function ‘showBalance’ by the object of each of the three Banks.

## Don't hesitate - Save time and Excel

Are you overwhelmed by an intense schedule and facing difficulties completing this assignment? We at GrandHomework know how to assist students in the most effective and cheap way possible. To be sure of this, place an order and enjoy the best grades that you deserve!

Post Homework
Top