Question: 29. Given the following code: Inside the file Bank.java: public abstract class Bank { abstract void withdraw () ; abstract void deposit(); public void balance

29. Given the following code: Inside the file Bank.java: public abstract class Bank \{ abstract void withdraw () ; abstract void deposit(); public void balance () \{ I/ implementation for balance here \} \} Inside the file Customer.java: public class Customer extends Bank \{ void deposit() \{ I/ implementation for deposit here \} 3 Why does this code not compile? A. The abstract keyword cannot be used with classes, only methods B. The Bank class cannot have a concrete method like balance C. The Customer class cannot extend an abstract class D. The Customer class implements only 1 of the abstract methods of Bank, when it needs to implement both
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
