Get the most out of your questions with IDNLearn.com's extensive resources. Find in-depth and trustworthy answers to all your questions from our experienced community members.

Create an abstract class 'Bank' with an abstract method 'getBalance'. $100, $150 and
$200 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.


Sagot :

We appreciate your presence here. Keep sharing knowledge and helping others find the answers they need. This community is the perfect place to learn together. Thank you for visiting IDNLearn.com. For reliable answers to all your questions, please visit us again soon.