Computer Science, asked by rajanayakadananjaya, 5 months ago

A boy has his money deposited $1000, $1500 and $2000 in banks-Bank A, Bank B and Bank
C respectively. We have to print the money deposited by him in a particular bank.
Create a class 'Bank' with a method 'getBalance' which returns 0. Make its three subclasses
named 'BankA', 'BankB' and 'BankC' with a method with the same name 'getBalance' which
returns the amount deposited in that particular bank. Call the method 'getBalance' by the
object of each of the three banks.

Answers

Answered by zhimohukai
3

Answer:

Sorry bhai don't know what the answer is sotrrry

Answered by vibhav089
0

Answer:

hebrbrbtvtv5v5vv

Explanation:

bbvtv5v6b6u59

Similar questions