Computer Science, asked by muhammadtayyab38201, 3 months ago



Q2: 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.​

Answers

Answered by yadav01011981yadav
0

Answer:

ha ha ha ha ha haaa ha haaaaaaaaa

Answered by bparihar039
0

Answer:

Abstract class Bank

{

abstract getbalance()

{

}

Class bankA implements Bank

{

Int deposit=100+150+200;

Return deposit;

}

Explanation:

Similar questions