Create an abstract class 'Bank' with an abstract method 'getBalance'. Rs. 10000, Rs. 15000 and Rs.
20000 are deposited in banks A, B and C respectively. 'BankA', 'BankB' and 'BankC' are subclasses
of class 'Bank', each having a method named 'getBalance'. Call this method by creating an object of
each of the three classes.
Comments
Leave a comment